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

devtools

What it does

This skill explains how to connect TanStack Table instances to the Devtools panel, so developers can inspect their options, state and rows. It covers the general registration step used across frameworks.

When to use it

  • ✓When a table does not appear in the devtools panel and you need to fix the connection.
  • ✓When you need to inspect a table's state and rows while developing with a supported framework.
  • ✓When you want to make sure the devtools stay limited to development builds.

Skill link

https://github.com/TanStack/table/blob/main/packages/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/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

“How do I register my TanStack Table with the devtools so I can see its rows and state?”

5 new skills a week. 1 minute to read.

How it works

It explains that each table needs a unique key, that framework hooks handle registration for you, and that the default devtools entry points do nothing outside development.

Technical content (original SKILL.md)

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

FAQ

Why does my table not show up?

The skill says tables with a missing or blank key are skipped, so each table needs a unique key.

Can I use devtools in production?

Only if you choose the explicit production entry point, which has security and bundle implications.

Do I need to call a registration function myself?

Usually not. Framework hooks or injectors handle registration and cleanup, and the raw function is meant for unsupported frameworks.

Details

Original description by the author

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

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills