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

devtools

하는 일

이 스킬은 Preact 표를 TanStack Devtools 패널에 등록해, 개발자가 만드는 동안 표의 상태를 볼 수 있게 하는 방법을 설명합니다. 개발 중 표 상태를 보고 싶은 Preact 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓개발 중 실행되는 Preact 앱에서 표의 상태를 점검하고 싶을 때.
  • ✓패널에 표가 없어서 등록을 확인해야 할 때.
  • ✓React와 Preact 패키지가 섞여 devtools가 제대로 연결되지 않는 경우.

스킬 링크

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

“제 Preact 표가 TanStack devtools 패널에 나타나지 않아요. 어떻게 연결하나요?”

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

작동 방식

고유한 키로 표를 만들고, Preact 훅으로 등록하며, 루트 근처에서 devtools 플러그인을 한 번 추가하는 방법을 설명합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

This skill builds on @tanstack/table-core#core and @tanstack/table-devtools#devtools.

Setup

import { TanStackDevtools } from '@tanstack/preact-devtools'
import { useTable, tableFeatures } from '@tanstack/preact-table'
import {
  tableDevtoolsPlugin,
  useTanStackTableDevtools,
} from '@tanstack/preact-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 the native Preact packages throughout. Pass { enabled } rather than conditionally calling the registration hook.

Common Mistakes

HIGH React Devtools package mixed into Preact

Wrong: import the hook from @tanstack/react-table-devtools through compat.

Correct: use @tanstack/preact-table-devtools with @tanstack/preact-devtools.

The native adapter owns Preact effect lifecycle and plugin types.

Source: TanStack/table:docs/devtools.md

HIGH Missing or duplicate key

Wrong: omit key or reuse users-table for multiple mounted tables.

Correct: give each live table one stable unique key.

Keyless registration is skipped; duplicate keys replace targets.

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

MEDIUM Production no-op mistaken for failure

Wrong: expect the default entrypoint to stay active in a production bundle.

Correct: keep Devtools development-only unless an explicit production import is required.

The default index deliberately selects no-op implementations outside development.

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

API Discovery

Inspect node_modules/@tanstack/preact-table-devtools/dist/index.d.ts and useTanStackTableDevtools.d.ts; do not copy React adapter imports.

자주 묻는 질문

왜 각 표에 키가 필요한가요?

키가 없는 표는 건너뛰고, 같은 키를 가진 두 표는 패널에서 서로를 덮어씁니다.

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

네, 훅이 enabled 옵션을 받으므로 호출을 지우지 않고도 끌 수 있습니다.

Preact 앱에서 React devtools 패키지를 써야 하나요?

아니요, 호환성 별칭으로 React 패키지를 가져오지 말고 네이티브 Preact 패키지를 쓰라고 이 스킬은 말합니다.

상세 정보

작성자의 원본 설명

Connect native Preact Table v9 instances to Devtools with tableDevtoolsPlugin and useTanStackTableDevtools. Load for React-package mixups, missing targets, required options.key, enabled state, cleanup, or development gating.

repo: TanStack/table

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬