React Query: Execution order of useMutation side effects
Today I learned, what is the actual order of execution of React Query useMutation side effects.
Given a mutation like this:
const mutation = useMutation(
(id) => {
console.log('Mutation callback')
return toggleTodo(id)
},
{
...
blog.macieksitkowski.com1 min read