tanstack-octane-table-create-table-hook
Installation
SKILL.md
This skill builds on @tanstack/table-core#core, getting-started, and table-state. Use the app hook for repeated conventions; keep a one-off table on useTable.
Setup
import {
createTableHook,
rowSelectionFeature,
tableFeatures,
} from '@tanstack/octane-table'
export const { createAppColumnHelper, useAppTable, useTableContext } =
createTableHook({
features: tableFeatures({ rowSelectionFeature }),
getRowId: (row: { id: string }) => row.id,
})
Create the factory at module scope. Its wrappers have stable identities and read the latest table facade without remounting their child subtrees.