Skip to content

Commit 8ccc36c

Browse files
haodakingTkDodoautofix-ci[bot]
authoredDec 3, 2024··
docs: useQuery to object syntax (#8387)
* docs: useQuery to object syntax * ci: apply automated fixes --------- Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 73ec525 commit 8ccc36c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎docs/framework/vue/guides/query-keys.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ ref: docs/framework/react/guides/query-keys.md
99
```js
1010
function useTodos(todoId) {
1111
const queryKey = ['todos', todoId]
12-
return useQuery(queryKey, () => fetchTodoById(todoId.value))
12+
return useQuery({
13+
queryKey,
14+
queryFn: () => fetchTodoById(todoId.value),
15+
})
1316
}
1417
```
1518

0 commit comments

Comments
 (0)
Please sign in to comment.