Skip to content

Commit

Permalink
docs(lukemorales-query-key-factory.md): fix code example (#5258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonghyeon Ko authored Apr 16, 2023
1 parent b99ae60 commit 317fe08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/react/community/lukemorales-query-key-factory.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function Todo({ todoId }) {
const query = useQuery(queryKeys.todos.detail(todoId))

const mutation = useMutation({
mutationFn: () => completeTodo,
mutationFn: completeTodo,
onSuccess: () => {
// Invalidate and refetch
queryClient.invalidateQueries({ queryKey: queryKeys.todos.list.queryKey })
Expand Down

0 comments on commit 317fe08

Please sign in to comment.