fix: paginator watch (#2613)

pull/2610/head^2
patak 2024-02-24 15:51:51 +01:00 zatwierdzone przez GitHub
rodzic 3769176eaa
commit 1fefb6e5b6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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