autoResetExpanded does not work as expected
Hey 👋🏽 @Tanner Linsley @KevinVandy
autoResetExpanded
should work in such a way that the expanding state is reset on a data change, right? I tried that, but it does not work. The data changes, but the expanded state remains. There's much confusion in the web about how to achieve a auto-reset of the expanded state in tanstack-table v8.
The only way I can manage the expand-reset so far is the following:
Is this the right way? If yes, what's the purpose of https://tanstack.com/table/latest/docs/api/features/expanding#autoresetexpanded
Thanks3 Replies
like-goldOP•13mo ago
If
autoReset*
-features are obsolete, what is the correct way to achieve the same features?There's the useEffect approach, but the extra rendering rounds are not great.
Would it be possible to have onDataChange
-event?judicial-coral•13mo ago
It's possible there was just a bug introduced here at some point, will need to look into it
like-goldOP•13mo ago
@KevinVandy ok, thanks for checking this.