Skillpedia
المواقع والواجهات (frontend)29k · #9839

devtools

ما الذي تفعله

توضح هذه المهارة كيف تربط جداول TanStack Table بلوحة Devtools، حتى يتمكن المطورون من فحص خياراتها وحالتها وصفوفها. وتغطي خطوة التسجيل العامة المستخدمة عبر أطر العمل.

متى تستخدمها

  • ✓عندما لا يظهر جدول في لوحة الأدوات ويجب إصلاح الربط.
  • ✓عندما تحتاج إلى فحص حالة جدول وصفوفه أثناء التطوير بإطار عمل مدعوم.
  • ✓عندما تريد التأكد من أن الأدوات تبقى محصورة في بيئات التطوير.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/TanStack/table/blob/main/packages/table-devtools/skills/devtools/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“كيف أسجل جدول TanStack Table لديّ في الأدوات حتى أرى صفوفه وحالته؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تشرح أن كل جدول يحتاج إلى مفتاح فريد، وأن خطافات إطار العمل تتولى التسجيل نيابةً عنك، وأن نقاط الدخول الافتراضية للأدوات لا تفعل شيئًا خارج التطوير.

المحتوى التقني (ملف 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.

الأسئلة الشائعة

لماذا لا يظهر جدولي؟

تقول المهارة إن الجداول التي لا تملك مفتاحًا أو يكون مفتاحها فارغًا تُتجاهل، لذلك يحتاج كل جدول إلى مفتاح فريد.

هل يمكن استخدام الأدوات في الإنتاج؟

فقط إذا اخترت نقطة دخول الإنتاج صراحةً، وهذا يترتب عليه آثار أمنية وعلى حجم الحزمة.

هل أستدعي دالة تسجيل بنفسي؟

عادةً لا. تتولى خطافات إطار العمل أو المحقنات التسجيل والتنظيف، والدالة الخام مخصصة لأطر العمل غير المدعومة.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
21‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة