본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)29k · #9839

devtools

하는 일

이 스킬은 TanStack Table 인스턴스를 Devtools 패널에 연결해 옵션, 상태, 행을 점검하는 방법을 설명합니다. 여러 프레임워크에서 쓰는 공통 등록 단계를 다룹니다.

사용하는 경우

  • ✓테이블이 devtools 패널에 나타나지 않아 연결을 고쳐야 할 때.
  • ✓지원되는 프레임워크로 개발하면서 테이블의 상태와 행을 확인하고 싶을 때.
  • ✓devtools가 개발 빌드에서만 작동하도록 제한하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“TanStack Table을 devtools에 등록해서 행과 상태를 보려면 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

각 테이블에 고유 키가 필요하고, 프레임워크 훅이 등록을 처리하며, 기본 devtools 진입점은 개발 환경 밖에서는 아무 일도 하지 않는다고 설명합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.

자주 묻는 질문

제 테이블이 보이지 않는 이유는 무엇인가요?

키가 없거나 비어 있는 테이블은 건너뛰므로, 각 테이블에 고유 키가 필요합니다.

운영 환경에서 devtools를 쓸 수 있나요?

명시적인 운영 진입점을 선택하면 가능하지만, 보안과 번들 크기에 영향을 준다고 설명합니다.

등록 함수를 직접 호출해야 하나요?

보통은 아닙니다. 프레임워크 훅이나 인젝터가 등록과 정리를 처리하며, 원시 함수는 지원되지 않는 프레임워크용이라고 설명합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
29k
순위
#9839
라이선스
MIT
업데이트
2026. 10. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬