Replies: 1 comment
-
show this behavior in a reproduction codesandbox please |
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.
-
Hey community!
I have encountered issue using
queryClient.fetchQuery
.I have a test function
It called from 2 places in my react app, when myKey is changed from input.
I would expect only one request to be made, since
myKey
is the same in both invocations ofqueryClient.fetchQuery
and I definedstaleTime
. But, instead I can see 2 separate requests, with the samemyKey
. Moreover, when I updatemyKey
to old value, it doesn't returned form cache, instead I see another 2 requests.Can anyone advice why it happens?
My version
4.29.12
Thanks
Beta Was this translation helpful? Give feedback.
All reactions