mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
feat: pass input to watched sources if it's a ref
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user