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

devtools

What it does

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

When to use it

  • ✓When a React table is missing from the devtools panel and you need to fix its registration.
  • ✓When you want to inspect a React table's state while the app runs in development.
  • ✓When you need the devtools hook to follow React rules instead of being called conditionally.

Skill link

https://github.com/TanStack/table/blob/main/packages/react-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/react-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 is my React table not showing in the TanStack devtools panel?”

5 new skills a week. 1 minute to read.

How it works

It explains how to give the table a unique key, call the registration hook right after creating the table and add one devtools host near the root of the app.

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

import { TanStackDevtools } from '@tanstack/react-devtools'
import { useTable, tableFeatures } from '@tanstack/react-table'
import {
  tableDevtoolsPlugin,
  useTanStackTableDevtools,
} from '@tanstack/react-table-devtools'

const features = tableFeatures({})
const columns = [{ accessorKey: 'id' }]
const data: Array<{ id: string }> = []

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

Hooks and Components

Use useTanStackTableDevtools(table, { enabled }) immediately after creating the table. Mount one TanStackDevtools host with tableDevtoolsPlugin() near the application root.

Common Mistakes

HIGH Hook receives a keyless table

Wrong: create the table without key and expect the hook to infer a name.

Correct: set a unique key in table options before calling the hook.

Core target registration skips keyless tables.

Source: TanStack/table:docs/devtools.md

HIGH Hook called conditionally

Wrong: call useTanStackTableDevtools only inside an if branch.

Correct: call it every render and pass { enabled: condition }.

The hook owns React effect registration and cleanup.

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

MEDIUM Default import expected in production

Wrong: expect the normal hook/plugin/panel to inspect production tables.

Correct: keep normal guidance development-only; use the /production entrypoint only when explicitly required.

The default index selects no-op implementations outside development.

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

API Discovery

Inspect node_modules/@tanstack/react-table-devtools/dist/index.d.ts and useTanStackTableDevtools.d.ts for the installed lifecycle API.

FAQ

Why is my table skipped by the devtools?

Tables without a key are skipped, so the skill says to set a unique key before calling the hook.

Can I turn devtools registration on or off?

Yes. Pass an enabled option to the hook instead of calling it only inside an if branch.

Where should the devtools host go?

Near the application root, once, with the table devtools plugin added to it.

Details

Original description by the author

Connect React Table v9 instances to Devtools with tableDevtoolsPlugin and useTanStackTableDevtools. Load for missing Table panels, registration lifecycle, required options.key, enabled state, or development versus explicit production exports.

repo: TanStack/table

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills