Subrows don't exist for row.getIsSelected()

I'm trying to select subrows when rows are collapsed

https://codesandbox.io/s/fervent-meadow-qymqg0?file=/src/main.tsx

You can see here, for the purposes of getIsSelected subRows don't exist until expanded.

I need to keep track of them as selected even when collapsed.
Any tips?
CodeSandboxjames-Infotrack
fervent-meadow-qymqg0 by james-Infotrack using @faker-js/faker, @tanstack/react-table, faker, react, react-dom
fervent-meadow-qymqg0 - CodeSandbox
Was this page helpful?