From 892d167ff18447521a73ae4953c9dd438a4c142e Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Sat, 27 May 2023 06:13:45 -0700 Subject: [PATCH] feat: pass input to watched sources if it's a ref --- playground/pages/reactive.vue | 4 +--- src/client/index.ts | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/playground/pages/reactive.vue b/playground/pages/reactive.vue index fe4ab5d..6a2fffc 100644 --- a/playground/pages/reactive.vue +++ b/playground/pages/reactive.vue @@ -6,9 +6,7 @@ const id = ref(1) // watch: [id] // }) -const { data: todo, pending, error, refresh } = await $client.todo.getTodo.useQuery(id, { - watch: [id], -}) +const { data: todo, pending, error, refresh } = await $client.todo.getTodo.useQuery(id)