diff --git a/docs/framework/vue/guides/query-keys.md b/docs/framework/vue/guides/query-keys.md index a09aa36443..bb4a89571f 100644 --- a/docs/framework/vue/guides/query-keys.md +++ b/docs/framework/vue/guides/query-keys.md @@ -9,7 +9,10 @@ ref: docs/framework/react/guides/query-keys.md ```js function useTodos(todoId) { const queryKey = ['todos', todoId] - return useQuery(queryKey, () => fetchTodoById(todoId.value)) + return useQuery({ + queryKey, + queryFn: () => fetchTodoById(todoId.value), + }) } ```