Skip to content

Commit 23d6d16

Browse files
committed
run watcher on each zero update
1 parent 6dd0112 commit 23d6d16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/query.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ export function useQuery<
5050
}
5151

5252
watch(
53-
[() => toValue(query), () => z],
53+
[() => toValue(query), () => toValue(z)],
5454
([q, z]) => {
5555
view.value?.destroy()
5656

5757
// Only present in v0.23+
58-
if (z && z.value.materialize) {
59-
view.value = z.value.materialize(q, vueViewFactory, { ttl: ttl.value })
58+
if (z?.materialize) {
59+
view.value = z.materialize(q, vueViewFactory, { ttl: ttl.value })
6060
return
6161
}
6262

0 commit comments

Comments
 (0)