Repository navigation
feat!: move to TanStack Table v9 - #21
Merged
Merged
Conversation
SyedSibtainRazvi
force-pushed
the
feat/tanstack-table-v9
branch
from
November 16, 2026 10:23
292a766 to
4d4ffc0
Compare
This was referenced Nov 16, 2026
Merged
SyedSibtainRazvi
force-pushed
the
feat/tanstack-table-v9
branch
from
November 19, 2026 07:47
4d4ffc0 to
12dc5d6
Compare
useSheet builds its table with v9's useTable from the sheet's one feature set: sorting, column and global filtering, faceting, column sizing, resizing, visibility and ordering, and row pinning, with the sort and filter functions TanStack picks by itself. The set is fixed, as v9's docs type every table and component by one set, so Sheet, SheetHeader and SheetRow are typed for it with no casts. The header filters move with it: textFilter is v9's filterFn_includesString, valuesFilter is built with constructFilterFn, and the checklist's counts come from the facetedRowModel and facetedUniqueValues slots. SheetColumnDef<TData> types a column array for the sheet's features. BREAKING CHANGE: the peer dependency is @tanstack/react-table ^9.3.1. TanStack's types take the feature set first, so createColumnHelper<Task>() becomes createColumnHelper<SheetFeatures, Task>() and ColumnDef<Task> becomes SheetColumnDef<Task>. Arrays of helper columns are built with columnHelper.columns(). `sortingFn` is `sortFn`, table.getState() is table.state, and state.columnSizingInfo is state.columnResizing. Features the sheet doesn't register, such as row selection, aren't available. A sort or filter function other than the ones TanStack picks by itself goes straight on the column as its sortFn or filterFn. With manualFiltering, a valuesFilter checklist lists the values in the loaded rows: the getFacetedUniqueValues option is gone.
SyedSibtainRazvi
force-pushed
the
feat/tanstack-table-v9
branch
from
November 19, 2026 10:11
12dc5d6 to
57a7ac7
Compare
Merged
3 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Etiquettes of raising a PR
PR reviews are a way to request peers to give feedback on the code that is going
to the mainline. This means, that PR should be in a reviewable state. Please ensure
that the following checkboxes are ticked. If any of them are not ticked, then
the PR is not ready for review
Related issue
Functionalities added or changed
useSheetruns on v9'suseTable. The peer dependency is@tanstack/react-table ^9.3.1, the latest release.Sheet,SheetHeaderandSheetRoware typed for it with no casts.textFilteris v9'sfilterFn_includesString, andvaluesFilteris built withconstructFilterFn.facetedRowModelandfacetedUniqueValuesslots.manualFiltering, a checklist lists the values in the loaded rows.SheetColumnDef<TData>: types a column array for the sheet's features.decisions.md,architecture.mdandAGENTS.md.Additional info
@tanstack/react-tableto v9.createColumnHelper<Task>()becomescreateColumnHelper<SheetFeatures, Task>(), andColumnDef<Task>[]becomesSheetColumnDef<Task>[].columnHelper.columns([...]).sortingFnbecomessortFn,table.getState()becomestable.state, andstate.columnSizingInfobecomesstate.columnResizing.sortFnorfilterFn.getFacetedUniqueValuesoption is gone: withmanualFiltering, a checklist lists the loaded values.table.Subscribeislands.main(0.2.2): typing into cells and the "+" under the row numbers, from feat: type straight into cells, and add rows from right below them #23, work on v9 unchanged.Checklist
Screenshots
Page(s) if applicable
No visual change.