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