T
TanStack2y ago
harsh-harlequin

Setting proper row id

I'm using react-table and I've set row number using row.id/row.index and after sorting row numbers get's messed up. How can I deal with it?
No description
No description
2 Replies
ratty-blush
ratty-blush2y ago
Where you map thru your visible cells, include the index (second parameter of array.map) Use that index instead.
harsh-harlequin
harsh-harlequinOP2y ago
ty so much

Did you find this page helpful?