feat: pass input to watched sources if it's a ref

This commit is contained in:
wobsoriano
2023-05-27 06:13:45 -07:00
parent e15ea6b5a3
commit 892d167ff1
2 changed files with 6 additions and 5 deletions

View File

@@ -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)
</script>
<template>