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
usePostMutation
and on success of that mutation I am navigating to Screen B.In Screen B I am using
useMutationState
to access the data ofusePostMutation
. I am able to get the data but initially it isundefined
and then I am able to see the actual data.My question is since I am navigating on to the Screen B
onSuccess
of theusePostMutation
why my data which I am getting usinguseMuatationState
is undefined initially ??Beta Was this translation helpful? Give feedback.
All reactions