Multiple queries with the same object as result? #566
Unanswered
wuifdesign
asked this question in
General
Replies: 2 comments 2 replies
-
This looks to partially overlap with #575 in the case where My suspicion is that this library was designed with lots of redundant network requests in mind. That explains the instant cache invalidation and constant refreshes. |
Beta Was this translation helpful? Give feedback.
1 reply
-
any updates on this? |
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
-
Hi,
I have a question about best practice with this library. i have multiple queries returning the same object lets say "user"
when running the application i now have the same user object about 100 times stored in react query.
now my question: when i update the user, what is the best way to update all 100 calls using the same user. fireing 100 calls to the backend dosn't seam like a good idea.
When Using redux i just would update my single user in the store, as i would normalize all of the calls and it would update anywhere, but i don't know how to handle this with react query. is there a way to link results, or some way to normalize them?
thx
Beta Was this translation helpful? Give feedback.
All reactions