mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 14:46:08 +09:00
fix: paginator watch (#2613)
This commit is contained in:
parent
3769176eaa
commit
1fefb6e5b6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user