Application state in React Query cache?!? #2681
Unanswered
andrewcovenant
asked this question in
General
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.
-
Hello everyone,
I would like to share with you some discussions and approaches regarding using React-Query and I would like your opinion on this and maybe some contributors can help with some guidance.
We have the following requirement:
We are developing a multi-step form in React.js and our client would like some drafting functionality.
Instead of having a context with useDispatch to keep the application state, I'm populating the React Query cache to keep draft data (Application state).
So, the question is: Can I use React Query cache to keep the application state? Or is it just for the server state? Is my approach correct?
Beta Was this translation helpful? Give feedback.
All reactions