Replies: 1 comment 1 reply
-
I'm covering this here: https://tkdodo.eu/blog/react-query-and-forms |
Beta Was this translation helpful? Give feedback.
1 reply
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've read some articles like https://tkdodo.eu/ and I know that storing the results of react-query in a store (like zustand) is not agood practice。
but in some scenarios, you need to do some state updates based on the server state, and then submit them to the server, in this case, is it appropriate to store the server state in the store, or is it appropriate to use an API like setQueryData to update the server state
here's an example https://codesandbox.io/p/sandbox/loving-shadow-yqsv9s
Beta Was this translation helpful? Give feedback.
All reactions