TanStackT
TanStack8mo ago
5 replies
awake-maroon

Look up row index from ID

How can I look up the actual rendered row index (after sorting, filtering etc) for a row?

I can't see any other solution than calling (a potentially slow) findIndex on table.getRowModel(), since the index field on the row unfortunately corresponds to the index in the original passed-in data array.

Is there no API for this?
Was this page helpful?