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
So onMutation i am calling a function that send a post request to a route then onMutate i am calling a function to get all previous message and onSuccess i am calling a function that fetches all the message including new one so this works well in locally but when i deploy it on vercel , it is not working , onSuccess is called before getting complete response from the post request.
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
-
Summary
So
onMutation
i am calling a function that send a post request to a route thenonMutate
i am calling a function to get all previous message andonSuccess
i am calling a function that fetches all the message including new one so this works well in locally but when i deploy it on vercel , it is not working , onSuccess is called before getting complete response from the post request.here is the code:
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions