useQuery or Pass the data in Props #4049
Unanswered
allidoisace
asked this question in
Q&A
Replies: 1 comment
-
depends. please read: https://tkdodo.eu/blog/react-query-as-a-state-manager |
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.
-
If you have a component that uses data from useQuery but also a child component that uses the same information. Is it better to pass it as props to the child, or just call useQuery in the child since it pulls from the cache anyways?
Beta Was this translation helpful? Give feedback.
All reactions