Replies: 1 comment
-
it shouldn't be. can you show a codesandbox reproduction? |
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 using
useMutation
to getrequestId
like below.and use
reuqestId
to enableuseQuery
.However, when I re-render component, response of
useMutation
is different at every rendering. But, when I logqueryClient.getMutationCache()
, it hasrequestId
.From this point, why mutation response is different at every rendering? Mutation is executed only once at component mounting. It doesn't executed at every rendering.
Thanks for reading my question! 🙇♂️
Beta Was this translation helpful? Give feedback.
All reactions