Skip to content

Commit 7cf74a4

Browse files
docs(examples/optimistic-updates): fix typo (TanStack#2044)
1 parent ba86d6f commit 7cf74a4

File tree

1 file changed

+1
-1
lines changed
  • examples/optimistic-updates/pages

1 file changed

+1
-1
lines changed

examples/optimistic-updates/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function Example() {
5252
onError: (err, variables, previousValue) =>
5353
queryClient.setQueryData('todos', previousValue),
5454
// After success or failure, refetch the todos query
55-
onSuccess: () => {
55+
onSettled: () => {
5656
queryClient.invalidateQueries('todos')
5757
},
5858
}

0 commit comments

Comments
 (0)