Remove all selected rows even though I'm in other page #2902
-
I'm having a hard time trying to delete all rows selected even though I'm in other page using toggleAllRowsSelected from hook-plugin useRowSelect. I'm using controlled pagination for server-side and as the documentation says, I set I'm doing something wrong or is a bug in toggleAllRowsSelected callback? Is there a way to manipulate the state of react-table to change manually the selectedRowIds prop? I solved it this way.. but it could cause performance issues I think... :
Documentation: useRowSelect: https://react-table.tanstack.com/docs/api/useRowSelect#userowselect |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I solved the issue by using stateReducer option.
Reference: https://react-table.tanstack.com/docs/api/useTable |
Beta Was this translation helpful? Give feedback.
I solved the issue by using stateReducer option.
Reference: https://react-table.tanstack.com/docs/api/useTable