npm / @tanstack/react-table
@tanstack/react-table
What changed in @tanstack/react-table 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
59 breaking3 deprecations21 new APIs and options2 performance3 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@tanstack/react-table 990 changes
Breaking changes 59
Bundled Intent skills now use smaller entry points; consumers must replace retired feature or composition IDs and refresh Intent mappings.
AggregationFnDef replaces the callable AggregationFn and CreatedAggregationFn types.
The position argument uses end instead of right.
The accessor is plural because a column can run multiple aggregation definitions; it replaces column.getAggregationFn().
This method now takes one options object containing rows and maxDepth instead of positional arguments.
The automatic sorting accessor was renamed from column.getAutoSortingFn().
The sorting accessor was renamed from column.getSortingFn().
The position argument uses start instead of left.
Use start and end arguments instead of left and right when pinning columns.
ColumnMeta now takes TFeatures as its first generic parameter when extended through declaration merging.
Column pinning state uses logical start/end terminology instead of physical left/right terminology; there are no deprecated aliases.
Column pinning now uses start/end terminology, including columnPinning.start and the corresponding pin and getStart*/getEnd* APIs.
The resizing state replaces columnSizingInfo.
Rename columnSizingInfo state to columnResizing, along with related options.
Column sizing and interactive resizing are separate features; register columnResizingFeature alongside columnSizingFeature when drag-to-resize is needed.
Custom aggregation callables now use context-based definitions constructed with constructAggregationFn.
Pass TFeatures as the first generic parameter to createColumnHelper, before TData.
Factory for the expanded row model, registered on tableFeatures instead of as a separate table option.
Factory for faceted minimum and maximum values, registered on tableFeatures instead of as a separate table option.
Factory for the faceted row model, registered on tableFeatures instead of as a separate table option.
Factory for faceted unique values, registered on tableFeatures instead of as a separate table option.
Factory for the filtered row model, registered on tableFeatures instead of as a separate table option.
Move get*RowModel() configuration to tableFeatures slots, such as filteredRowModel: createFilteredRowModel(); row model factories no longer take arguments.
Factory for the grouped row model, registered on tableFeatures instead of as a separate table option.
Factory for the paginated row model, registered on tableFeatures instead of as a separate table option.
Factory for the sorted row model, registered on tableFeatures instead of as a separate table option.
The former enablePinning option is split into separate column- and row-pinning options.
Set this option to false to preserve the previous non-range handler behavior.
Packages ship as modern ESM; UMD and CJS builds have been dropped.
The useTable options require features to declare which features, row models, and processing functions the table uses.
Register custom filter functions in the feature registry slot; registered keys become valid string values without FilterFns augmentation.
Use the filterMeta feature slot to type filter metadata instead of augmenting FilterMeta globally.
Table state is no longer accessed through table.getState(); use table.state, table.store.state, or a state-slice atom instead.
This column option controls which depth is selected for context.rows; the default 0 preserves direct-child aggregation, while Infinity selects terminal leaf rows.
The change callback option replaces onColumnSizingInfoChange.
The table option is removed; subscribe to table.store for any state change. Individual on[State]Change handlers remain available.
The visible-cell accessor formerly named row.getLeftVisibleCells() is now row.getStartVisibleCells(); the right-side counterpart uses the end terminology.
When rowSelectionFeature is enabled, the handler now enables inclusive Shift range selection by default; set enableRowRangeSelection to false to retain non-range behavior.
Call row, cell, column, and header methods on their instances rather than destructuring those methods.
Aggregation is now independent from column grouping; explicitly register this feature when columns use aggregation APIs or definitions.
RowData is now restricted to Record<string, any> or Array<any>, so unusual data types must conform to one of these shapes.
Use setColumnResizing() instead of setColumnSizingInfo().
The column definition option sortingFn was renamed to sortFn; update column definitions accordingly.
The SortingFn type was renamed to SortFn.
The SortingFns interface was renamed to SortFns.
The built-in sorting functions are now exposed as sortFns instead of sortingFns.
Register sort functions in the feature registry slot so their keys can be used as sortFn string values.
Published packages no longer include source files or source maps, reducing install footprint.
This internal API has been removed.
This internal API has been removed.
This internal API has been removed.
This internal API has been removed.
This check now means at least one page row is selected, including when all page rows are selected.
This check now means at least one row is selected, including when all rows are selected; gate indeterminate state with the all-selected check.
Header-group accessors now use start/end instead of left/right terminology.
Access state through table.store.state or table.state instead of table.getState().
Creates the features configuration where features, row models, and processing function registries are registered.
Most types now take TFeatures as a generic parameter, changing their type argument shapes.
Replaces useReactTable as the React hook for creating a table.
Deprecations 3
The full registry export is deprecated in favor of importing and registering only the individual aggregation functions used.
The full registry export is deprecated in favor of importing and registering only the individual filter functions used.
The full registry export is deprecated in favor of importing and registering only the individual sort functions used.
New APIs and options 21
Register aggregation functions in the feature registry slot so their keys can be used as aggregationFn string values.
Lets callers provide writable atoms for state slices they want to own externally.
Adds spreadsheet-style rectangular cell-range selection, including dragging, Shift-extend, and multiple disjoint ranges.
Adds body-cell spanning across rows and columns, with span-aware cell selection.
Wrap column arrays with this helper to preserve individual TValue types, including through nested group columns.
A type-only columnMeta slot on the features option declares column meta types per table without global declaration merging.
Creates custom table hooks with pre-bound features and components for reusable application-level table patterns.
A component-based rendering alternative accepts header, cell, or footer props; the existing flexRender function continues to work.
Header groups compute rowSpan so shallow columns can span header rows.
Includes all features for Table V8-like behavior without requiring individual feature imports.
Use StockFeatures as the feature type when using stockFeatures with useTable.
Exposes readonly atoms for individual state slices to enable fine-grained subscriptions.
The table instance exposes a component-based renderer for headers, cells, and footers.
Provides the selected table state; by default it contains the full registered state.
Exposes a framework-agnostic store for reading and subscribing to the entire table state.
Enables fine-grained reactive subscriptions to selected table state and limits re-renders to changes in those slices.
A type-only tableMeta slot on the features option declares meta types per table without global declaration merging.
Provides a way to compose reusable table configuration, including features, row models, and default options.
This utility provides type-safe composition of table options and supports partial configurations that omit required fields.
Legacy-specific APIs are imported from a separate package export.
A temporary migration hook accepts the Table V8-style API while using Table V9 under the hood; it includes all features by default.
Performance 2
The core architecture shares more behavior across table objects, with some large-table scenarios seeing up to 90% memory savings.
Sorting, filtering, and aggregation paths use improved algorithms and memoization, with many scenarios seeing 40–70% speed improvements.
Behavior and default changes 3
This cell lookup is now public; it replaces the private row._getAllCellsByColumnId().
TanStack Table v9 is now a stable release; developers should follow the framework-specific migration guide for upgrade instructions.
Compiled output now targets ES2022.
Fixes and other changes 2
Consumers now receive refreshed table context when useAppTable renders with new options or state, preventing stale rows after cached AppTable data changes.
Column definitions now accept built-in filterFn, sortFn, and aggregationFn names matching the registries registered by useLegacyTable.