Langsung ke konten
Skillpedia
Website & UI (frontend)29k · #9834

core

Fungsinya

Skill ini menjelaskan fondasi bersama TanStack Table, pustaka yang mengelola state tabel dan pemrosesan baris. Skill ini untuk pengembang yang perlu memahami model inti sebelum memakai adapter framework.

Kapan dipakai

  • ✓Saat Anda memulai tabel baru dan perlu tahu cara kerja model inti serta input yang stabil.
  • ✓Saat Anda perlu memeriksa apakah fitur tabel opsional tersedia sebelum memakainya.
  • ✓Saat Anda menulis integrasi yang tidak memakai framework tertentu.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/TanStack/table/blob/main/packages/table-core/skills/core/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Sebelum saya membangun tabel, bisa jelaskan bagaimana TanStack Table v9 menangani data dan kolom?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menjelaskan bahwa pustaka mengoordinasikan state dan pemrosesan baris, sementara kode Anda mengendalikan markup, lalu memberikan contoh minimal yang membangun tabel dan membaca barisnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Mengapa data dan kolom harus stabil?

Skill menyatakan mengubahnya pada setiap render membuat pekerjaan model tidak valid, sehingga perubahan array sebaiknya diturunkan dengan memo atau computed dari adapter.

Apakah pustaka menggambar tabel untuk saya?

Tidak. Skill menyatakan renderer memiliki markup, gaya, dan semantik, sedangkan pustaka mengelola state dan baris.

Apakah semua fitur tabel aktif secara default?

Tidak. API dan state opsional hanya ada setelah fitur terkait didaftarkan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
29k
Peringkat
#9834
Lisensi
MIT
Diperbarui
21/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa