setQueryData creates a loop #2828
Unanswered
NotNotRama
asked this question in
Q&A
Replies: 1 comment
-
I’ve answered the question on StackOverflow: https://stackoverflow.com/questions/69701355/setquerydata-not-updating-the-cache-with-react-query |
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.
-
I'm trying to fetch some data and immediately update said cache data on success, but if I use
setQueryData
it creates a loop.For testing purposes, I tried returning the same data and I still get the same loop. I also tried using
setQueryData
outsideuseQuery
without much success.Beta Was this translation helpful? Give feedback.
All reactions