From 299ae558ab0fe3180611b7b21260d10cf278e8b2 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Tue, 22 Aug 2023 10:48:44 -0700 Subject: [PATCH] fix: add missing useLazyQuery type --- playground/pages/index.vue | 2 +- src/client/index.ts | 10 +++++----- src/client/types.ts | 24 ++++++++++++++++++++---- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/playground/pages/index.vue b/playground/pages/index.vue index dc208fb..f116ae6 100644 --- a/playground/pages/index.vue +++ b/playground/pages/index.vue @@ -17,7 +17,7 @@ const addTodo = async () => { } } -const { data: todos, pending, error, refresh } = await $client.todo.getTodos.useQuery() +const { data: todos, pending, error, refresh } = await $client.todo.getTodos.useLazyQuery()