Examples
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.
Try it
- Click
Go to next page. The row numbers start at6. - Click
Column ActionsonAgeand chooseSort ascending.Ageshows a sort arrow. - Click
Show/Hide searchand typeP2. Only names starting withP2remain. - Click
Toggle full screentwice. The table fills the screen, then returns.
Related guides
Sticky Heights
Three tables with a sticky header: set by the option, set in view settings, and forced by row virtualization. The first two cap their height at 70% of the window, the third at the full window height.
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.