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

devtools

What it does

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

When to use it

  • ✓When you want to inspect an Angular table's state while the app runs in development.
  • ✓When the devtools panel does not show a table and you need to check its registration.
  • ✓When you want the devtools to stay limited to development builds.

Skill link

https://github.com/TanStack/table/blob/main/packages/angular-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/angular-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 make my Angular table show up in the TanStack devtools panel while I develop?”

5 new skills a week. 1 minute to read.

How it works

It explains how to call the registration helper inside an Angular component, give each table a unique key and turn the registration on or off.

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 { Component } from '@angular/core'
import { injectTable, tableFeatures } from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'

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

@Component({ selector: 'users-table', template: 'Users table registered' })
export class UsersTable {
  readonly table = injectTable(() => ({
    key: 'users-table',
    features,
    columns,
    data,
  }))

  constructor() {
    injectTanStackTableDevtools(() => ({ table: this.table }))
  }
}

Provide the Angular TanStack Devtools host once at application configuration level as documented in docs/devtools.md.

Hooks and Components

The injector options function may return table: undefined or an enabled function to remove/disable registration reactively.

Common Mistakes

CRITICAL Injector called outside context

Wrong: call injectTanStackTableDevtools from an arbitrary callback after bootstrap.

Correct: call it in a component/service field initializer or constructor injection context.

The adapter uses Angular injection and effects for lifecycle cleanup.

Source: TanStack/table:packages/angular-table-devtools/src/injectTanStackTableDevtools.ts

HIGH Missing table key

Wrong: register an otherwise valid table without options.key.

Correct: assign a stable unique key before injection registration.

Core registration logs an error and skips keyless targets.

Source: TanStack/table:packages/table-devtools/src/tableTarget.ts

MEDIUM isDevMode no-op misunderstood

Wrong: expect default Angular exports to render production Devtools.

Correct: keep standard setup development-only; use /production only when explicitly requested.

The package index switches exports using Angular isDevMode().

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

API Discovery

Inspect node_modules/@tanstack/angular-table-devtools/dist/index.d.ts and injectTanStackTableDevtools.d.ts for current injection options.

FAQ

Where must the registration code go?

It must run inside an Angular injection context, such as a component field or the constructor.

Why does each table need a key?

The options require a key so that each table can be identified in the devtools panel.

Does the app need any extra setup?

Yes. The devtools host must be provided once at the application configuration level, as the docs describe.

Details

Original description by the author

Register Angular Table v9 instances with injectTanStackTableDevtools inside injection context. Load for reactive table registration, required options.key, enabled or undefined tables, cleanup, Angular isDevMode gating, or explicit production exports.

repo: TanStack/table

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills