From 1fefb6e5b61b2ea51cd3c9d45b11cb31354d33e5 Mon Sep 17 00:00:00 2001 From: patak <583075+patak-dev@users.noreply.github.com> Date: Sat, 24 Feb 2024 15:51:51 +0100 Subject: [PATCH] fix: paginator watch (#2613) --- composables/paginator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composables/paginator.ts b/composables/paginator.ts index 70edadc7..02c96945 100644 --- a/composables/paginator.ts +++ b/composables/paginator.ts @@ -29,11 +29,11 @@ export function usePaginator( prevItems.value = [] } - watch(() => stream, async (stream) => { - if (!stream.value) + watch(stream, async (stream) => { + if (!stream) return - for await (const entry of stream.value) { + for await (const entry of stream) { if (entry.event === 'update') { const status = entry.payload