function useLegacyTable<TData>(options): LegacyReactTable<TData>;
Defined in: useLegacyTable.ts:363
TData extends RowData
LegacyTableOptions<TData>
Legacy v8-style table options
LegacyReactTable<TData>
A table instance with the full state subscribed and a getState() method
This hook is provided as a compatibility layer for migrating from TanStack Table v8.
Use the new useTable hook instead with explicit _features and _rowModels:
// New v9 API
const _features = tableFeatures({
columnFilteringFeature,
rowSortingFeature,
rowPaginationFeature,
})
const table = useTable({
_features,
_rowModels: {
filteredRowModel: createFilteredRowModel(filterFns),
sortedRowModel: createSortedRowModel(sortFns),
paginatedRowModel: createPaginatedRowModel(),
},
columns,
data,
})
Key differences from v8: