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

devtools

Was er macht

Dieser Skill erklärt, wie du TanStack-Table-Instanzen mit dem Devtools-Panel verbindest, damit Entwickler Optionen, Status und Zeilen prüfen können. Er deckt den allgemeinen Registrierungsschritt ab, der über alle Frameworks hinweg gilt.

Wann du ihn nutzt

  • ✓Wenn eine Tabelle im Devtools-Panel nicht erscheint und du die Verbindung reparieren musst.
  • ✓Wenn du Status und Zeilen einer Tabelle prüfen willst, während du mit einem unterstützten Framework entwickelst.
  • ✓Wenn du sicherstellen willst, dass die Devtools nur auf Entwicklungs-Builds beschränkt bleiben.

Link zum Skill

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

“Wie registriere ich meine TanStack-Tabelle bei den Devtools, damit ich ihre Zeilen und ihren Status sehen kann?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er erklärt, dass jede Tabelle einen eindeutigen Schlüssel braucht, dass Framework-Hooks die Registrierung für dich übernehmen und dass die Standard-Einstiegspunkte der Devtools außerhalb der Entwicklung nichts tun.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Setup

Framework adapters should use their lifecycle hook or injector. The framework-neutral registration primitive is:

import { constructTable, tableFeatures } from '@tanstack/table-core'
import { storeReactivityBindings } from '@tanstack/table-core/store-reactivity-bindings'
import { upsertTableDevtoolsTarget } from '@tanstack/table-devtools'

const features = tableFeatures({
  coreReactivityFeature: storeReactivityBindings(),
})

const table = constructTable({
  key: 'users-table',
  features,
  columns: [],
  data: [],
})

const cleanup = upsertTableDevtoolsTarget({ table })
cleanup()

Core Patterns

Give every live table a descriptive unique key

The non-empty options.key is both registry identity and panel label. Use stable application identity, not an array index.

Let adapter lifecycles own registration

React/Preact/Solid/Vue hooks and the Angular injector register and clean up at the correct time. Use core target functions only for unsupported frameworks or infrastructure code.

Keep ordinary Devtools development-only

Default entrypoints export no-op panels/plugins outside development. Use /production only when the application explicitly chooses production inspection and its security/bundle implications.

Common Mistakes

HIGH Missing key skips registration

Wrong: register a table whose options.key is absent or whitespace.

Correct: set a stable value such as key: 'billing-invoices' before registration.

The registry logs the missing-key error and returns without adding a target.

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

HIGH Two tables share one key

Wrong: use key: 'table' for simultaneous tables.

Correct: use unique domain identities such as users-table and orders-table.

Upserting a different table under an existing key replaces that registration.

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

MEDIUM Production panel expected by default

Wrong: debug why the normal entrypoint renders nothing in production.

Correct: keep Devtools development-only unless production inspection was explicitly requested; then import the documented /production entrypoint.

Default production exports intentionally use no-op implementations.

Source: TanStack/table:docs/devtools.md

API Discovery

Inspect node_modules/@tanstack/table-devtools/dist/index.d.ts, tableTarget.d.ts, and production.d.ts. Framework registration belongs to the matching @tanstack/<framework>-table-devtools package.

Häufige Fragen

Warum erscheint meine Tabelle nicht?

Der Skill sagt, Tabellen mit fehlendem oder leerem Schlüssel werden übersprungen, daher braucht jede Tabelle einen eindeutigen Schlüssel.

Kann ich die Devtools in der Produktion nutzen?

Nur wenn du den ausdrücklichen Produktions-Einstiegspunkt wählst, der Auswirkungen auf Sicherheit und Bundle-Größe hat.

Muss ich selbst eine Registrierungsfunktion aufrufen?

Meist nicht. Framework-Hooks oder Injectoren übernehmen Registrierung und Aufräumen, die rohe Funktion ist für nicht unterstützte Frameworks gedacht.

Details

Originalbeschreibung des Autors

Register TanStack Table targets and inspect options, state, features, columns, rows, and row models with @tanstack/table-devtools. Load for missing connections, required unique table options.key, target replacement/cleanup, or an explicit request for production Devtools entrypoints.

repo: TanStack/table

Beliebtheit

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

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills