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

core

ما الذي تفعله

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

متى تستخدمها

  • ✓عندما تبدأ جدولًا جديدًا وتحتاج إلى معرفة كيف يعمل النموذج الأساسي والمدخلات الثابتة.
  • ✓عندما تحتاج إلى التحقق مما إذا كانت ميزة اختيارية متاحة قبل استخدامها.
  • ✓عندما تكتب تكاملًا لا يستخدم إطار عمل محددًا.

رابط المهارة

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

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

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

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

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

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

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

“قبل أن أبني جدولي، هل يمكنك شرح طريقة تعامل TanStack Table v9 مع البيانات والأعمدة؟”

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

كيف تعمل

تشرح أن المكتبة تنسّق الحالة ومعالجة الصفوف بينما يتحكم كودك في الترميز، وتعطي مثالًا بسيطًا ينشئ جدولًا ويقرأ صفوفه.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

TanStack Table core

TanStack Table coordinates state and row processing. The renderer owns markup, styles, semantics, and interaction accessibility. Use the installed framework adapter in UI code; use constructTable for framework-neutral integrations.

Minimal setup

<!-- skill-snippet:check -->
import {
  constructTable,
  createColumnHelper,
  tableFeatures,
} from '@tanstack/table-core'
import { storeReactivityBindings } from '@tanstack/table-core/store-reactivity-bindings'

type Person = { id: string; name: string }
const features = tableFeatures({
  coreReactivityFeature: storeReactivityBindings(),
})
const helper = createColumnHelper<typeof features, Person>()
const columns = helper.columns([helper.accessor('name', { header: 'Name' })])
const data: Person[] = [{ id: '1', name: 'Ada' }]
const table = constructTable({
  features,
  columns,
  data,
  getRowId: (row) => row.id,
})

for (const row of table.getRowModel().rows) {
  console.log(row.getAllCells().map((cell) => cell.getValue()))
}

Essential constraints

  • The core row model is automatic. Optional APIs and state exist only after their feature is registered.
  • Keep features, data, and columns stable between meaningful changes. Derive changing arrays with the adapter's memo/computed mechanism; an inline .map(), .filter(), column factory, or fresh [] fallback invalidates model work and can cause render loops.
  • Let createColumnHelper and helper.columns() preserve accessor value types. Derive feature types from the concrete registry when an explicit boundary is needed.
  • Call row, cell, column, and header methods on their instance. Use row.getValue('name') or a callback that calls it; extracting const { getValue } = row loses its this receiver.
  • Render the final table.getRowModel().rows. The table object itself is not a DOM component.

Read for the current task

Task Read
Add or repair optional features, processing slots, or prerequisites Feature architecture, then its relevant feature reference
Choose state ownership, initialize or reset state Shared state
Fix ColumnDef inference, reusable options, or scoped meta TypeScript inference
Diagnose a missing export, option, state slice, or instance method API discovery
Implement row numbers, identity, or display-index behavior Rows
Author behavior beyond built-ins or typed meta Custom features
Migrate an existing v8 table Migration audit

For framework construction and rendering, load the installed package's getting-started skill with intent load <package>#getting-started, replacing <package> with the actual adapter package, such as @tanstack/react-table. For reactive reads or controlled wiring, load that package's table-state skill directly.

Installed API discovery

Start at node_modules/@tanstack/table-core/dist/index.d.ts and follow exported declarations. Adapter declaration layouts and missing-API diagnosis are in API discovery; read it when the expected export or declaration path is absent.

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

لماذا يجب أن تبقى البيانات والأعمدة ثابتة؟

تقول المهارة إن تغييرها في كل عرض يُبطل عمل النموذج، لذلك يجب اشتقاق المصفوفات المتغيرة بآلية memo أو computed التي يوفرها المحوّل.

هل ترسم المكتبة الجدول بدلًا مني؟

لا. تقول المهارة إن المُعرِض يملك الترميز والأنماط والدلالات، بينما تدير المكتبة الحالة والصفوف.

هل تعمل كل ميزات الجدول افتراضيًا؟

لا. الواجهات والحالات الاختيارية لا تكون موجودة إلا بعد تسجيل ميزتها.

التفاصيل

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

Use TanStack Table v9 core architecture, stable data and columns, and inferred types. Route setup, missing APIs, row models, state, features, and framework-specific work.

repo: TanStack/table

الشعبية

نجوم GitHub
29k
الترتيب
#9834
الترخيص
MIT
آخر تحديث
21‏/10‏/2026

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

0

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

التعليقات

  • …

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

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