TanStackT
TanStack2y ago
1 reply
sacred-rose

different type for subRows

I came across this (unresolved) gh discussion with a couple of folks all running into a similar scenario as i currently am.

Whats the move when the type being passed to getSubRows doesn't match the original exactly ?

I'n my case the subRow is basically is just a subset of the original columns.

https://github.com/TanStack/table/discussions/4484
GitHub
How can I declare a different Data type for subRows ? All the examples I have seen use the same type for nested subrows. In my case I have Projects (parent) which have 1 or more Tasks (children aka...
different TypeScript types for subRows · TanStack table · Discussio...
Was this page helpful?