You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I callsetQueryData before calling the mutation, it updates faster than calling setQueryData inside onMutate in react-query react-native, can anybody explains to me why this is happening?
2024-05-05.22.47.01.mp42024-05-05.22.46.58.mp4
You can notice the update is happing immediately in the first screen record when calling setQueryData before calling the mutation, but in the second screen record, I'm calling setQueryData inside onMutate
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I call
setQueryData
before calling the mutation, it updates faster than callingsetQueryData
insideonMutate
in react-query react-native, can anybody explains to me why this is happening?2024-05-05.22.47.01.mp4
2024-05-05.22.46.58.mp4
You can notice the update is happing immediately in the first screen record when calling
setQueryData
before calling the mutation, but in the second screen record, I'm calling setQueryData insideonMutate
Beta Was this translation helpful? Give feedback.
All reactions