Перейти к содержанию
Skillpedia
Сайты и интерфейсы (фронтенд)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 по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Прежде чем я начну делать таблицу, объясни, как TanStack Table v9 работает с данными и колонками.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Скилл объясняет, что библиотека координирует состояние и обработку строк, а ваш код управляет разметкой. Он дает минимальный пример, который создает таблицу и читает ее строки.

Технический текст (оригинальный 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.

Частые вопросы

Почему данные и колонки должны оставаться стабильными?

Скилл говорит, что их изменение при каждом рендере сбрасывает работу модели, поэтому изменяемые массивы нужно выводить через мемо или вычисляемый механизм адаптера.

Библиотека сама рисует таблицу?

Нет. Скилл говорит, что за разметку, стили и семантику отвечает рендерер, а библиотека управляет состоянием и строками.

Все функции таблицы включены по умолчанию?

Нет. Необязательные API и состояние появляются только после регистрации их функции.

Подробности

Оригинальное описание автора

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

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы