Troubleshot: React Query useMutation type error
13 June 2023 (Updated 13 June 2023)
Problem
![](https://sajadtorkamani.com/wp-content/uploads/2023/06/CleanShot-2023-06-13-at-12.34.51-1024x494.png)
Solution
Make the mutationFn
async by adding the async
prefix.
![](https://sajadtorkamani.com/wp-content/uploads/2023/06/CleanShot-2023-06-13-at-12.36.25.png)
Tagged:
React Query
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment