T
TanStack2y ago
absent-sapphire

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
national-gold
national-gold2y ago
Where you map thru your visible cells, include the index (second parameter of array.map) Use that index instead.
absent-sapphire
absent-sapphireOP2y ago
ty so much

Did you find this page helpful?