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

devtools

하는 일

이 스킬은 Angular 표를 TanStack Devtools 패널에 등록해, 디버깅할 때 개발자가 표를 볼 수 있게 하는 방법을 설명합니다. 설정, 필수 키, 정리 작업을 다룹니다.

사용하는 경우

  • ✓개발 중 실행되는 Angular 앱에서 표의 상태를 점검하고 싶을 때.
  • ✓패널에 표가 보이지 않아 등록을 확인해야 할 때.
  • ✓devtools를 개발용 빌드에서만 사용하고 싶은 경우.

스킬 링크

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

“개발하는 동안 Angular 표가 TanStack devtools 패널에 보이도록 하려면 어떻게 하나요?”

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

작동 방식

Angular 컴포넌트 안에서 등록 도우미를 호출하는 방법, 각 표에 고유한 키를 주는 방법, 등록을 켜고 끄는 방법을 설명합니다.

기술 내용 (원본 SKILL.md)

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

자주 묻는 질문

등록 코드는 어디에 있어야 하나요?

컴포넌트 필드나 생성자처럼 Angular 주입 컨텍스트 안에서 실행되어야 합니다.

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

패널에서 각 표를 식별할 수 있도록 옵션에 키가 필요합니다.

앱에 추가 설정이 필요한가요?

네, 문서에 나온 대로 devtools 호스트를 애플리케이션 설정 수준에서 한 번 제공해야 합니다.

상세 정보

작성자의 원본 설명

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

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬