We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dd0112 commit 23d6d16Copy full SHA for 23d6d16
src/query.ts
@@ -50,13 +50,13 @@ export function useQuery<
50
}
51
52
watch(
53
- [() => toValue(query), () => z],
+ [() => toValue(query), () => toValue(z)],
54
([q, z]) => {
55
view.value?.destroy()
56
57
// Only present in v0.23+
58
- if (z && z.value.materialize) {
59
- view.value = z.value.materialize(q, vueViewFactory, { ttl: ttl.value })
+ if (z?.materialize) {
+ view.value = z.materialize(q, vueViewFactory, { ttl: ttl.value })
60
return
61
62
0 commit comments