Skip to content
Skillpedia
Websites & UI (frontend)29k · #9840

devtools

What it does

This skill shows how to register Vue tables with the TanStack Devtools panel so developers can inspect them while building. It covers setup, required keys and cleanup when a table is replaced.

When to use it

  • ✓When a Vue table is missing from the devtools panel and you need to fix its registration.
  • ✓When the table in your Vue component is replaced and the devtools must follow the new one.
  • ✓When you want the devtools to appear only in development builds.

Skill link

https://github.com/TanStack/table/blob/main/packages/vue-table-devtools/skills/devtools/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/TanStack/table/blob/main/packages/vue-table-devtools/skills/devtools/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Why isn't my Vue table listed in the TanStack devtools panel?”

5 new skills a week. 1 minute to read.

How it works

It explains how to create the table with a unique key, call the registration hook in the component and add one devtools host near the application root.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

Why must I keep the table in a ref?

The skill says the hook tracks replacement, so unwrapping the ref once would register only a snapshot.

Why is my table skipped?

Tables without a key are skipped, and duplicate keys replace each other, so each table needs its own key.

Can the registration be turned off?

Yes. The hook accepts an enabled option, so registration can be switched off.

Details

Original description by the author

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

Popularity

GitHub stars
29k
Ranking position
#9840
License
MIT
Updated
10/21/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills