Replies: 1 comment 3 replies
-
|
shouldn't be; show a reproduction, preferably in codesandbox, because it's likely not react-native specific |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose there are 2 screens in a react-native app ( Screen A, Screen B ) both on the same Stack. I am on Screen A, Screen B still has not been pushed to the stack. I call a mutation say
usePostMutationand on success of that mutation I am navigating to Screen B.In Screen B I am using
useMutationStateto access the data ofusePostMutation. I am able to get the data but initially it isundefinedand then I am able to see the actual data.My question is since I am navigating on to the Screen B
onSuccessof theusePostMutationwhy my data which I am getting usinguseMuatationStateis undefined initially ??Beta Was this translation helpful? Give feedback.
All reactions