Skip to content

Commit

Permalink
fix: paginator watch (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Feb 24, 2024
1 parent 3769176 commit 1fefb6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composables/paginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export function usePaginator<T, P, U = T>(
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

Expand Down

0 comments on commit 1fefb6e

Please sign in to comment.