Examples
Hook Selector Skips State Renders
The table comes from useShadcnTable with a selector. The page around it updates only for the state it picks, here the page index shown above the table.
Try it
- Click
Toggle density. The rows change height; the index above stays0. - Tick a row's checkbox. The row is selected; the index still reads
0. - Click
Go to next page. The first row isP06and the index reads1.
Related guides
Root Skips State Renders
The table is built from props and its outer part does not update for paging, sorting, density, selection, search or full screen. Static row numbers still follow the page.
Hook Selector Follows Transform State
The table comes from useShadcnTable with a selector that picks only pagination. Grouping set from outside still adds the expand column.