Zum Inhalt springen
Skillpedia
Websites & UI (Frontend)29k · #9819

devtools

Was er macht

Dieser Skill zeigt, wie du Preact-Tabellen beim TanStack-Devtools-Panel registrierst, damit Entwickler sie beim Bauen prüfen können. Er ist für Preact-Entwickler gedacht, die während der Entwicklung den Tabellenstatus sehen wollen.

Wann du ihn nutzt

  • ✓Wenn du den Status einer Preact-Tabelle prüfen willst, während die App in der Entwicklung läuft.
  • ✓Wenn eine Tabelle im Devtools-Panel fehlt und du ihre Registrierung prüfen musst.
  • ✓Wenn React- und Preact-Pakete gemischt sind und die Devtools nicht richtig verbinden.

Link zum Skill

https://github.com/TanStack/table/blob/main/packages/preact-table-devtools/skills/devtools/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/TanStack/table/blob/main/packages/preact-table-devtools/skills/devtools/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Meine Preact-Tabelle erscheint nicht im TanStack-Devtools-Panel. Wie verbinde ich sie?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er erklärt, wie du die Tabelle mit einem eindeutigen Schlüssel erstellst, sie mit einem Preact-Hook registrierst und das Devtools-Plugin einmal nahe der Wurzel der App hinzufügst.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

This skill builds on @tanstack/table-core#core and @tanstack/table-devtools#devtools.

Setup

import { TanStackDevtools } from '@tanstack/preact-devtools'
import { useTable, tableFeatures } from '@tanstack/preact-table'
import {
  tableDevtoolsPlugin,
  useTanStackTableDevtools,
} from '@tanstack/preact-table-devtools'

const features = tableFeatures({})
const columns = [{ accessorKey: 'id' }]
const data: Array<{ id: string }> = []

export function App() {
  const table = useTable({
    key: 'users-table',
    features,
    columns,
    data,
  })
  useTanStackTableDevtools(table)
  return <TanStackDevtools plugins={[tableDevtoolsPlugin()]} />
}

Hooks and Components

Use the native Preact packages throughout. Pass { enabled } rather than conditionally calling the registration hook.

Common Mistakes

HIGH React Devtools package mixed into Preact

Wrong: import the hook from @tanstack/react-table-devtools through compat.

Correct: use @tanstack/preact-table-devtools with @tanstack/preact-devtools.

The native adapter owns Preact effect lifecycle and plugin types.

Source: TanStack/table:docs/devtools.md

HIGH Missing or duplicate key

Wrong: omit key or reuse users-table for multiple mounted tables.

Correct: give each live table one stable unique key.

Keyless registration is skipped; duplicate keys replace targets.

Source: TanStack/table:packages/table-devtools/src/tableTarget.ts

MEDIUM Production no-op mistaken for failure

Wrong: expect the default entrypoint to stay active in a production bundle.

Correct: keep Devtools development-only unless an explicit production import is required.

The default index deliberately selects no-op implementations outside development.

Source: TanStack/table:packages/preact-table-devtools/src/index.ts

API Discovery

Inspect node_modules/@tanstack/preact-table-devtools/dist/index.d.ts and useTanStackTableDevtools.d.ts; do not copy React adapter imports.

Häufige Fragen

Warum braucht jede Tabelle einen Schlüssel?

Tabellen ohne Schlüssel werden übersprungen, und zwei Tabellen mit demselben Schlüssel ersetzen einander im Panel.

Kann ich die Registrierung ein- und ausschalten?

Ja. Der Hook akzeptiert eine enabled-Option, damit du ihn abschalten kannst, ohne den Aufruf zu entfernen.

Soll ich React-Devtools-Pakete in einer Preact-App nutzen?

Nein. Der Skill sagt, die nativen Preact-Pakete zu nutzen, statt React-Pakete über Kompatibilitäts-Aliase zu importieren.

Details

Originalbeschreibung des Autors

Connect native Preact Table v9 instances to Devtools with tableDevtoolsPlugin and useTanStackTableDevtools. Load for React-package mixups, missing targets, required options.key, enabled state, cleanup, or development gating.

repo: TanStack/table

Beliebtheit

GitHub-Sterne
29k
Platz im Ranking
#9819
Lizenz
MIT
Aktualisiert
21.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills