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

devtools

Was er macht

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

Wann du ihn nutzt

  • ✓Wenn eine Solid-Tabelle im Devtools-Panel fehlt und du ihre Registrierung reparieren musst.
  • ✓Wenn du den Status einer Solid-Tabelle prüfen willst, während die App in der Entwicklung läuft.
  • ✓Wenn du die Devtools-Registrierung für eine bestimmte Tabelle ein- oder ausschalten willst.

Link zum Skill

https://github.com/TanStack/table/blob/main/packages/solid-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/solid-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 sehe ich meine Solid-Tabelle während der Entwicklung im TanStack-Devtools-Panel?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er erklärt, wie du die Tabelle innerhalb ihrer Komponente mit einem eindeutigen Schlüssel erstellst, dort den Registrierungs-Hook aufrufst und einen Devtools-Host nahe der Wurzel der Anwendung 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/solid-devtools'
import { createTable, tableFeatures } from '@tanstack/solid-table'
import {
  tableDevtoolsPlugin,
  useTanStackTableDevtools,
} from '@tanstack/solid-table-devtools'

const features = tableFeatures({})

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

Hooks and Components

Register inside the component's Solid owner. Pass { enabled } to the hook for conditional registration.

Common Mistakes

HIGH Registration created outside an owner

Wrong: call the Solid registration hook at module scope.

Correct: call it in the component that owns the table.

The hook uses Solid reactive cleanup to unregister the target.

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

HIGH Missing or reused table key

Wrong: omit options.key or share one key between mounted tables.

Correct: assign a stable unique key per live table.

The target registry skips missing keys and replaces duplicate identities.

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

MEDIUM Production entrypoint assumed active

Wrong: expect normal Devtools exports to inspect a production table.

Correct: keep default guidance development-only; use /production only on explicit request.

The package index selects no-op implementations outside development.

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

API Discovery

Inspect node_modules/@tanstack/solid-table-devtools/dist/index.d.ts, useTanStackTableDevtools.d.ts, and production.d.ts.

Häufige Fragen

Wo sollte ich den Registrierungs-Hook aufrufen?

In der Komponente, der die Tabelle gehört, nicht auf Modulebene, damit Solid die Registrierung korrekt aufräumen kann.

Warum wird meine Tabelle nicht aufgelistet?

Tabellen ohne Schlüssel werden übersprungen. Jede aktive Tabelle braucht deshalb einen stabilen, eindeutigen Schlüssel.

Kann ich es nur in manchen Fällen aktivieren?

Ja. Übergib eine enabled-Option an den Hook für eine bedingte Registrierung.

Details

Originalbeschreibung des Autors

Connect Solid Table v9 instances to Devtools with tableDevtoolsPlugin and useTanStackTableDevtools in the proper reactive owner. Load for missing targets, required options.key, enabled state, cleanup, or development versus explicit production exports.

repo: TanStack/table

Beliebtheit

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

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills