Replies: 1 comment 2 replies
-
my general rules are: |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I want some textfields in my app which modifies the remote data. The textfields are inside QueryComplete and it is only rendered when data is successfully fetched (using React suspense)
RootComp
:QueryComplete
:useComplete
hook:I am a beginner in JS, would like to know if queryData as store is a good idea or should I define a separate store using context API and fill it when queryData is fetched.
Also I am trying to access this data outside of QueryComplete in RootComp with:
Is this a right pattern to substitute a global state with react query (for remote data)?
Beta Was this translation helpful? Give feedback.
All reactions