TanStackT
TanStack2y ago
4 replies
rubber-blue

How do I get all rows value including the paginated one

 const orderFrom = table.getRowModel().rows?.length
    ? table.getRowModel().rows.map((row: any) => ({
        value: row.original.orderFrom.country,
        label: row.original.orderFrom.country,
      }))
    : []

The above code show only the visible table rows not paginated one
Was this page helpful?