Skip to content

Conversation

@hardfire
Copy link
Contributor

@hardfire hardfire commented Jan 6, 2021

Since we await in the function body, onMutate should be an async function.

Since we await in the function body, onMutate should be an async function.
@vercel
Copy link

vercel bot commented Jan 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/mwbd1rwkp
✅ Preview: https://react-query-git-fork-hardfire-patch-1.tannerlinsley.vercel.app

@hardfire hardfire changed the title onMutate should be async docs: onMutate should be async Jan 6, 2021
@hardfire hardfire changed the title docs: onMutate should be async docs(useMutation): onMutate should be async Jan 6, 2021
@boschni boschni merged commit 18091fe into TanStack:master Jan 7, 2021
@boschni
Copy link
Collaborator

boschni commented Jan 7, 2021

Thanks!

@tannerlinsley
Copy link
Member

🎉 This PR is included in version 3.5.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants