Repository navigation
|
Hi, The current row pinning feature works great if used with a client-side pagination but it seems quite limited when using a server-side pagination. e.g.
Proposal Thanks |
Answered by
amasen02
Sep 14, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The behavior you observed happens because of two factors:
getRowId, TanStack Table keys rows by their array index ("0","1","2"). When page 2 loads, index"2"resolves to the 3rd row of page 2 rather than your original row.dataarray. When page 2 loads, the server response omitted page 1's pinned item.Here is how to implement cross-page server-side row pinning reliably:
Step 1: Supply
getRowIdwith a Unique IdentifierTell TanStack Table to track rows by their unique ID (e.g., database primary key) rath…