Replies: 1 comment 4 replies
-
You should consider using something like local / session storage (or some kind of global state management) to save the state of the filter. I use local storage for a sorting state on a table, to save the user's selected preferences. https://usehooks-ts.com/react-hook/use-local-storage This library has a lot of nice out-of-the-box hooks that you can utilize so you don't need to define your own. |
Beta Was this translation helpful? Give feedback.
4 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.
-
Hi,
I would just like to ask your inputs on how I could achieve the following i am using react-table 7:
Then i click a button on that component that will go back to the table, I would like to retain the filtered state to be re-rendered (filtered by country value of 'Denmark')
Beta Was this translation helpful? Give feedback.
All reactions