Saltar al contenido
Skillpedia
Sitios e interfaces (frontend)29 mil · #9834

core

Qué hace

Esta habilidad explica la base compartida de TanStack Table, la biblioteca que gestiona el estado de la tabla y el procesamiento de filas. Es para desarrolladores que necesitan entender el modelo base antes de usar un adaptador de framework.

Cuándo usarla

  • ✓Cuando empiezas una tabla nueva y necesitas saber cómo funcionan el modelo base y las entradas estables.
  • ✓Cuando necesitas comprobar si una función opcional de la tabla está disponible antes de usarla.
  • ✓Cuando escribes una integración que no usa un framework específico.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/TanStack/table/blob/main/packages/table-core/skills/core/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Antes de construir mi tabla, ¿me explicas cómo maneja TanStack Table v9 los datos y las columnas?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Explica que la biblioteca coordina el estado y el procesamiento de filas mientras tu código controla el marcado, y da un ejemplo mínimo que construye una tabla y lee sus filas.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.

Preguntas frecuentes

¿Por qué los datos y las columnas deben ser estables?

La habilidad indica que cambiarlos en cada renderizado invalida el trabajo del modelo, así que los arreglos que cambian deben derivarse con el mecanismo de memo o computed del adaptador.

¿La biblioteca dibuja la tabla por mí?

No. La habilidad indica que el renderizador controla el marcado, los estilos y la semántica, mientras la biblioteca gestiona el estado y las filas.

¿Todas las funciones de la tabla están activas por defecto?

No. Las APIs y estados opcionales existen solo después de registrar su función.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
29 mil
Posición en el ranking
#9834
Licencia
MIT
Actualizada
21/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas