Skip to content

Commit d0a01e8

Browse files
author
rj-morgan
authored
docs: fix code for custom mutation hook (TanStack#802)
1 parent 52468e1 commit d0a01e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/docs/guides/updates-from-mutation-responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ create a custom hook like this:
2525

2626
```js
2727
const useMutateTodo = () => {
28-
return useMutate(editTodo, {
28+
return useMutation(editTodo, {
2929
// Notice the second argument is the variables object that the `mutate` function receives
3030
onSuccess: (data, variables) => {
3131
queryCache.setQueryData(['todo', { id: variables.id }], data)

0 commit comments

Comments
 (0)