DocsExamplesMore examples

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

  1. Click Toggle density. The rows change height; the index above stays 0.
  2. Tick a row's checkbox. The row is selected; the index still reads 0.
  3. Click Go to next page. The first row is P06 and the index reads 1.