We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d77f9e commit 56ab163Copy full SHA for 56ab163
composables/paginator.ts
@@ -67,7 +67,7 @@ export function usePaginator<T, P, U = T>(
67
if (!result.done && result.value.length) {
68
const preprocessedItems = preprocess([...nextItems.value, ...result.value] as (U | T)[])
69
const itemsToShowCount
70
- = preprocessedItems.length < buffer
+ = preprocessedItems.length <= buffer
71
? preprocessedItems.length
72
: preprocessedItems.length - buffer
73
;(nextItems.value as U[]) = preprocessedItems.slice(itemsToShowCount)
0 commit comments