devtools
できること
VueのテーブルをTanStack Devtoolsパネルに登録し、開発中に調べられるようにする方法を説明します。設定、必要なキー、テーブルが置き換わったときの後片付けを扱います。
使う場面
- ✓Vueのテーブルがデバッグパネルに表示されず、登録を直す必要があるとき。
- ✓Vueコンポーネント内のテーブルが置き換わり、Devtoolsも新しいテーブルに追従させる必要があるとき。
- ✓Devtoolsを開発ビルドでだけ表示させたいとき。
スキルのリンク
https://github.com/TanStack/table/blob/main/packages/vue-table-devtools/skills/devtools/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“VueのテーブルがTanStack Devtoolsパネルに表示されません。原因を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
一意のキーを付けてテーブルを作成し、コンポーネント内で登録用フックを呼び出し、アプリのルート近くにDevtoolsのホストを1つ追加する方法を説明します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
This skill builds on @tanstack/table-core#core and @tanstack/table-devtools#devtools.
Setup
<script setup lang="ts">
import { useTable, tableFeatures } from '@tanstack/vue-table'
import { useTanStackTableDevtools } from '@tanstack/vue-table-devtools'
const table = useTable({
key: 'users-table',
features: tableFeatures({}),
columns: [],
data: [],
})
useTanStackTableDevtools(table)
</script>
<template><div>Users table registered</div></template>
Mount the Vue TanStackDevtools host once with tableDevtoolsPlugin({}), following docs/devtools.md.
Hooks and Components
The hook accepts a table or ref-like table and tracks replacement. Keep that reactive wrapper intact rather than unwrapping once.
Common Mistakes
HIGH Ref unwrapped before registration
Wrong: read a ref once and register only that snapshot.
Correct: pass the ref/maybe-ref shape accepted by the hook.
The adapter watches the resolved table and cleans up when it changes.
Source: TanStack/table:packages/vue-table-devtools/src/useTanStackTableDevtools.ts
HIGH Missing or duplicate key
Wrong: omit key or reuse a key across mounted tables.
Correct: use one descriptive stable key for each target.
The registry skips keyless tables and replaces duplicate targets.
Source: TanStack/table:packages/table-devtools/src/tableTarget.ts
MEDIUM Development gate mistaken for broken plugin
Wrong: expect the default panel/plugin/hook in production.
Correct: keep normal Devtools development-only unless explicitly importing /production.
The package index selects no-op exports outside development.
Source: TanStack/table:packages/vue-table-devtools/src/index.ts
API Discovery
Inspect node_modules/@tanstack/vue-table-devtools/dist/index.d.ts and useTanStackTableDevtools.d.ts for current ref handling.
よくある質問
テーブルをrefに入れておく必要があるのはなぜですか?
フックは置き換えを追跡するため、refを一度アンラップすると、その時点のスナップショットしか登録されないからです。
テーブルが省かれるのはなぜですか?
キーがないテーブルは省かれ、キーが重複すると互いに上書きされるため、テーブルごとに別のキーが必要です。
登録を無効にできますか?
はい。フックはenabledオプションを受け付けるので、登録をオフにできます。
詳細
作者による元の説明
Connect Vue Table v9 refs or instances to Devtools with tableDevtoolsPlugin and useTanStackTableDevtools. Load for missing targets, reactive table replacement, required options.key, enabled state, cleanup, or development gating.
repo: TanStack/table
人気
- GitHubのスター
- 29k
- ランキング
- #9840
- ライセンス
- 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 において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。