Skip to content

Conversation

@anc95
Copy link
Contributor

@anc95 anc95 commented Aug 12, 2020

As seen at https://react-query.tanstack.com/docs/api#usemutation,

mutationFn: Function(variables) => Promise
Required
A function that performs an asynchronous task and returns a promise.
variables is an object that mutate will pass to your mutationFn

I correct the demo code

@vercel
Copy link

vercel bot commented Aug 12, 2020

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/i6au538bf
✅ Preview: https://react-query-git-fork-anc95-patch-1.tannerlinsley.vercel.app

@tannerlinsley
Copy link
Member

🎉 This PR is included in version 2.9.0 🎉

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.

2 participants