diff --git a/docs/guides/mutations.md b/docs/guides/mutations.md index a9b13b4bee..9344cc5356 100644 --- a/docs/guides/mutations.md +++ b/docs/guides/mutations.md @@ -300,7 +300,7 @@ const queryClient = new QueryClient({ // we need a default mutation function so that paused mutations can resume after a page reload queryClient.setMutationDefaults(['todos'], { mutationFn: ({ id, data }) => { - return api.upateTodo(id, data) + return api.updateTodo(id, data) }, })