How to initial select state or save selected item v8 ? #4487
Unanswered
testBP0612
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to make a features that tabs module, B tab has a DataTable that can be selected and then A tab can record and show the selected data of B, but selected rows always resetting when click on switch tab, like this problem.
As long as I switch back B tab data will reset.
I tried
autoResetAll: falsebut it didn't work.Now I use Redux to save selected data but can't initialize
rowSelection, I observed thatonRowSelectionChangereset the selected data every time so can't initialize.So the current practice is to pass the Redux data in DataTable component but can't initialize.
Can you stop it from resetting? Or how to save the data?
tanstack/react-table: ^8.5.15,
types/react": ^18.0.20,
Beta Was this translation helpful? Give feedback.
All reactions