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

devtools

하는 일

이 스킬은 React 표를 TanStack Devtools 패널에 등록해, 개발자가 만드는 동안 표를 점검할 수 있게 하는 방법을 보여 줍니다. 설정, 필수 키, 정리 작업을 다룹니다.

사용하는 경우

  • ✓React 표가 devtools 패널에 없어서 등록을 고쳐야 할 때.
  • ✓개발 중 실행되는 React 앱에서 표의 상태를 점검하고 싶을 때.
  • ✓devtools 훅이 if 분기 안에서 조건부로 호출되지 않고 React 규칙을 따라야 할 때.

스킬 링크

https://github.com/TanStack/table/blob/main/packages/react-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/react-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에게 요청하는 예시

“React 표가 TanStack devtools 패널에 보이지 않는 이유가 뭔가요?”

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

작동 방식

표에 고유한 키를 주고, 표를 만든 직후 등록 훅을 호출하며, 앱 루트 근처에 devtools 호스트 하나를 추가하는 방법을 설명합니다.

기술 내용 (원본 SKILL.md)

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

자주 묻는 질문

devtools가 왜 제 표를 건너뛰나요?

키가 없는 표는 건너뛰므로, 훅을 호출하기 전에 고유한 키를 설정하라고 이 스킬은 말합니다.

devtools 등록을 켜거나 끌 수 있나요?

네, if 분기 안에서만 호출하지 않고 훅에 enabled 옵션을 넘기면 됩니다.

devtools 호스트는 어디에 두어야 하나요?

앱 루트 근처에 한 번, 표 devtools 플러그인을 추가해 두면 됩니다.

상세 정보

작성자의 원본 설명

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

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬