You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The user is at the first page and pin the third rows. Tanstack table's rowPinning state will the keep the index of that row. The index is 2.
The user go to the next page of the table. A new call is make to the server and new data are loaded.
A row is still pinned but it does not contains the data that have been previously pinned. It's now containing the data of new call to the server at the same index.
Proposal
In a very naive way, I think tanstack should keep track of the whole row's data instead of just the index. I think, it could be flexible to save pinned row in local storage and ensure the correct data are displayed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
rowPinning
state will the keep the index of that row. The index is2
.Proposal
In a very naive way, I think tanstack should keep track of the whole row's data instead of just the index. I think, it could be flexible to save pinned row in local storage and ensure the correct data are displayed.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions