fix: show remaining items in buffer on pagination end

zio/stable
patak 2023-01-08 21:03:17 +01:00
parent 1dcaf41c0f
commit 19e4aa4ada
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ export function usePaginator<T, P>(
state.value = 'idle'
}
else {
items.value.push(...nextItems.value)
nextItems.value = []
state.value = 'done'
}
}