devtools
できること
TanStack Tableのインスタンスを、Devtoolsパネルに接続してオプション、状態、行を調べられるようにする方法を説明します。複数のフレームワークに共通する登録の手順を扱います。
使う場面
- ✓テーブルがDevtoolsパネルに表示されず、接続を直す必要があるとき。
- ✓対応するフレームワークで開発中に、テーブルの状態と行を調べたいとき。
- ✓Devtoolsが開発ビルドだけに限られるようにしたいとき。
スキルのリンク
https://github.com/TanStack/table/blob/main/packages/table-devtools/skills/devtools/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“TanStack TableをDevtoolsに登録して、行と状態を見られるようにする方法を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
各テーブルに一意のキーが必要なこと、フレームワークのフックが登録を自動で行うこと、標準のDevtoolsの入り口は開発環境以外では何もしないことを説明します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
テーブルが表示されないのはなぜですか?
キーがない、または空のテーブルは対象外になるため、各テーブルに一意のキーが必要です。
Devtoolsを本番環境で使えますか?
明示的な本番用の入り口を選べば使えますが、セキュリティとバンドルサイズへの影響があります。
登録用の関数を自分で呼ぶ必要がありますか?
通常は不要です。フレームワークのフックやインジェクターが登録と後片付けを行い、生の関数は対応していないフレームワーク向けです。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 29k
- ランキング
- #9839
- ライセンス
- MIT
- 更新日
- 2026/10/21
コメント
- …
このリポジトリの他のスキル
getting-started
29kエージェントが、Alpine.jsでTanStack Tableを使ってデータテーブルを作り、表示する方法を教えます。セットアップ、リアクティブなデータ、行の描画を扱います。
table-state
29kエージェントが、Alpine.jsで表の状態(現在のページなど)を読み取り、制御する方法を教えます。その状態が変わると、画面が更新されます。
devtools
29kエージェントが、Angularの表をTanStack Devtoolsのパネルに登録する方法を教えます。開発者はアプリを作りながら、各表を調べられます。
getting-started
29kエージェントが、AngularでTanStack Tableの表を作り、表示する方法を教えます。injectTableの設定、テンプレートの描画、行データの更新を扱います。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。