Skip to content
Discussion options

You must be logged in to vote

Why It Isn't the Default

In TanStack Table, features are strictly decoupled. RowFiltering determines which rows pass the search query, while RowExpanding controls whether children are uncollapsed in the row model.

If filtering automatically modified the expanded state internally, it would overwrite manual user expand/collapse choices and create ambiguity over what state to restore when the search input is cleared.

You can wire this up cleanly using one of two patterns:


Option 1: Expand All on Search (Simple & Fast)

TanStack Table supports setting expanded: true to expand all expandable rows at once. When a user begins typing a query, set expanded: true; when they clear the input, collaps…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Turtleguyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants