tanstack-table▌
casper-studios/casper-marketplace · updated Apr 20, 2026
Use context7 for the latest documentation. Use deepwiki to ask questions about the library's implementation.
Documentation
Use context7 for the latest documentation. Use deepwiki to ask questions about the library's implementation.
- GitHub Repository: https://github.com/TanStack/table
- DeepWiki Repository:
TanStack/table - Context7 Library ID:
/tanstack/table
TanStack Table Patterns
This skill covers TanStack Table library patterns with the meta field for passing behavior to cells.
Core Pattern: Hoisted Columns with Meta
// 1. Extend TableMeta for type safety
declare module '@tanstack/react-table' {
interface TableMeta<TData extends RowData> {
onEdit?: (id: string) => void;
onDelete?: (id: string) => void;
}
}
// 2. Hoist column definitions outside component
const columnHelper = createColumnHelper<Job>();
const columns = [
columnHelper.accessor('name', {
header: 'Name',
cell: info => info.getValue(),
}),
columnHelper.display({
id: 'actions',
cell: ({ row, table }) => (
<Button onClick={() => table.options.meta?.onEdit?.(row.original.id)}>Edit</Button>
),
}),
];
// 3. Pass callbacks via meta
function DataTable({ data, onEdit, onDelete }: Props) {
const table = useReactTable({
data,
columns,
getCoreRowModel: getCoreRowModel(),
meta: { onEdit, onDelete },
});
return <Table>...</Table>;
}
Why Meta Over Closures?
Closures in column definitions cause re-renders:
// Bad - new column array every render
const columns = useMemo(() => [
{
cell: ({ row }) => (
<Button onClick={() => onEdit(row.original.id)}>Edit</Button>
),
},
], [onEdit]); // Invalidates when onEdit changes
// Good - stable columns, dynamic meta
const columns = [...]; // Hoisted, never changes
const table = useReactTable({
meta: { onEdit }, // Only meta changes
});
References
- For column definition patterns, see column-definitions.md
- For meta field type safety, see meta-field.md
Ratings
4.7★★★★★38 reviews- ★★★★★Ganesh Mohane· Dec 24, 2024
tanstack-table is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Shikha Mishra· Dec 20, 2024
We added tanstack-table from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Camila Ramirez· Dec 12, 2024
tanstack-table reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Aditi Farah· Dec 8, 2024
I recommend tanstack-table for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Charlotte Jain· Nov 27, 2024
tanstack-table fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Sakshi Patil· Nov 15, 2024
Keeps context tight: tanstack-table is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Kabir Harris· Nov 3, 2024
Registry listing for tanstack-table matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Luis Abebe· Oct 22, 2024
tanstack-table fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Min Garcia· Oct 18, 2024
Registry listing for tanstack-table matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Chaitanya Patil· Oct 6, 2024
tanstack-table has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 38