Repository navigation
v0.26.0
data-grid moves to TanStack Table 9. The grid looks and behaves the same; the table you build for it changes, once.
Changed
data-grid0.26.0 needs@tanstack/react-table9. You still own the table: build it withuseTable({ features, … }), wherefeaturesstarts from the exporteddataGridFeatures(every feature and sort function the grid's parts call) plus the row models you use. Column types take the features (DataGridColumnDef<Row, typeof features>), pinning isstart/end, andtable.getState()is gone. The data-grid page has the full guide: Upgrading to TanStack Table 9, with before-and-after code, a prompt to hand a coding agent, and a grep checklist that must print nothing when you are done.- React Compiler:
data-grid.tsxstarts with"use no memo". Table 9 keeps one row, column and header object for the table's life and answers state through methods, which compiled code would cache. Keep the directive in your copy. CalluseTablewithout a selector, and in your own cells read state through<Subscribe source={row.table.atoms.…}>. A test now compiles the grid with the React Compiler and checks that sorting, selection, expanding and resizing update; without the directive it fails. - Dependabot no longer holds
@tanstack/react-tablemajors;react-resizable-panels4 stays held.