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

devtools

Was er macht

Dieser Skill zeigt, wie du React-Tabellen beim TanStack-Devtools-Panel registrierst, damit Entwickler sie beim Bauen prüfen können. Er deckt Einrichtung, erforderliche Schlüssel und Aufräumen ab.

Wann du ihn nutzt

  • ✓Wenn eine React-Tabelle im Devtools-Panel fehlt und du ihre Registrierung reparieren musst.
  • ✓Wenn du den Status einer React-Tabelle prüfen willst, während die App in der Entwicklung läuft.
  • ✓Wenn der Devtools-Hook den React-Regeln folgen muss und nicht bedingt aufgerufen werden darf.

Link zum Skill

https://github.com/TanStack/table/blob/main/packages/react-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/react-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

“Warum wird meine React-Tabelle nicht im TanStack-Devtools-Panel angezeigt?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er erklärt, wie du der Tabelle einen eindeutigen Schlüssel gibst, den Registrierungs-Hook direkt nach dem Erstellen der Tabelle aufrufst und einen Devtools-Host 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/react-devtools'
import { useTable, tableFeatures } from '@tanstack/react-table'
import {
  tableDevtoolsPlugin,
  useTanStackTableDevtools,
} from '@tanstack/react-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 useTanStackTableDevtools(table, { enabled }) immediately after creating the table. Mount one TanStackDevtools host with tableDevtoolsPlugin() near the application root.

Common Mistakes

HIGH Hook receives a keyless table

Wrong: create the table without key and expect the hook to infer a name.

Correct: set a unique key in table options before calling the hook.

Core target registration skips keyless tables.

Source: TanStack/table:docs/devtools.md

HIGH Hook called conditionally

Wrong: call useTanStackTableDevtools only inside an if branch.

Correct: call it every render and pass { enabled: condition }.

The hook owns React effect registration and cleanup.

Source: TanStack/table:packages/react-table-devtools/src/useTanStackTableDevtools.ts

MEDIUM Default import expected in production

Wrong: expect the normal hook/plugin/panel to inspect production tables.

Correct: keep normal guidance development-only; use the /production entrypoint only when explicitly required.

The default index selects no-op implementations outside development.

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

API Discovery

Inspect node_modules/@tanstack/react-table-devtools/dist/index.d.ts and useTanStackTableDevtools.d.ts for the installed lifecycle API.

Häufige Fragen

Warum überspringen die Devtools meine Tabelle?

Tabellen ohne Schlüssel werden übersprungen, deshalb sagt der Skill, vor dem Hook einen eindeutigen Schlüssel zu setzen.

Kann ich die Devtools-Registrierung ein- und ausschalten?

Ja. Übergib eine enabled-Option an den Hook, statt ihn nur innerhalb eines if-Zweigs aufzurufen.

Wo gehört der Devtools-Host hin?

Nahe der Wurzel der Anwendung, einmal, mit dem hinzugefügten Tabellen-Devtools-Plugin.

Details

Originalbeschreibung des Autors

Connect React Table v9 instances to Devtools with tableDevtoolsPlugin and useTanStackTableDevtools. Load for missing Table panels, registration lifecycle, required options.key, enabled state, or development versus explicit production exports.

repo: TanStack/table

Beliebtheit

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

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills