devtools
यह क्या करती है
यह स्किल दिखाती है कि Preact टेबल को TanStack Devtools पैनल में कैसे रजिस्टर करें, ताकि डेवलपर बनाते समय उन्हें देख सकें। यह उन Preact डेवलपरों के लिए है जो विकास के दौरान टेबल की स्थिति देखना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप विकास में चल रहे ऐप में Preact टेबल की स्थिति देखना चाहें।
- ✓जब कोई टेबल devtools पैनल में न हो और आपको उसका रजिस्ट्रेशन जांचना हो।
- ✓जब React और Preact पैकेज मिले हों और devtools ठीक से न जुड़ें।
Skill का लिंक
https://github.com/TanStack/table/blob/main/packages/preact-table-devtools/skills/devtools/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी Preact टेबल TanStack devtools पैनल में नहीं दिख रही। इसे कैसे जोड़ूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह समझाती है कि टेबल को अनोखी key के साथ कैसे बनाएँ, उसे Preact hook से रजिस्टर करें, और ऐप की root के पास एक बार devtools plugin जोड़ें।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
हर टेबल को key क्यों चाहिए?
बिना key वाली टेबल छोड़ दी जाती हैं, और एक ही key वाली दो टेबल पैनल में एक-दूसरे को बदल देती हैं।
क्या मैं रजिस्ट्रेशन चालू या बंद कर सकता हूँ?
हाँ। hook एक enabled विकल्प लेता है, ताकि कॉल हटाए बिना उसे बंद किया जा सके।
क्या Preact ऐप में React devtools पैकेज इस्तेमाल करूँ?
नहीं। स्किल कहती है कि compatibility aliases से React पैकेज आयात करने के बजाय native 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
- अपडेट की गई
- 21/10/2026
कमेंट
- …
इस repository की और skills
getting-started
29kयह आपके एजेंट को Alpine.js में TanStack Table से डेटा टेबल बनाना और दिखाना सिखाती है, जिसमें सेटअप, रिएक्टिव डेटा और पंक्तियाँ दिखाना शामिल है।
table-state
29kयह आपके एजेंट को Alpine.js में टेबल की स्थिति, जैसे मौजूदा पेज, पढ़ना और नियंत्रित करना सिखाती है, ताकि वह स्थिति बदलने पर स्क्रीन अपडेट हो।
devtools
29kयह आपके एजेंट को Angular टेबल को TanStack Devtools पैनल में रजिस्टर करना सिखाती है, ताकि डेवलपर ऐप बनाते समय हर टेबल की जांच कर सकें।
getting-started
29kयह आपके एजेंट को Angular में TanStack टेबल बनाना और दिखाना सिखाती है, जिसमें injectTable सेटअप, टेम्प्लेट रेंडरिंग और पंक्ति डेटा के अपडेट शामिल हैं।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।