Replies: 1 comment
-
To control state in v8, you provide your specific state slice in the options and a general or feature specific change listener. In case of rowSelection, this is onRowSelectionChange Also see the example on fully-controlled state |
Beta Was this translation helpful? Give feedback.
0 replies
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 store selected ids in the url and want to update the table rowSelection state whenever that value changes. Previously useControlledState worked well for this where you are passed the oldState and return the newState.
What's the equivalent to useControlledState in v8? Currently I use a useEffect like this:
Is this the intention? Is there a better way?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions