Skip to content

Commit 2cb94ad

Browse files
authored
docs: fix typo (TanStack#2082)
1 parent 356627a commit 2cb94ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mutation.mutate({
1919

2020
// The query below will be updated with the response from the
2121
// successful mutation
22-
const { status, data, error } = useQuery(['todo', { id: 5 }], fetchTodoByID)
22+
const { status, data, error } = useQuery(['todo', { id: 5 }], fetchTodoById)
2323
```
2424

2525
You might want to tie the `onSuccess` logic into a reusable mutation, for that you can

0 commit comments

Comments
 (0)