Update use-pagination.ts
This commit is contained in:
parent
6e5b6a3bdb
commit
da58d43a7a
|
@ -127,6 +127,7 @@ export function usePagination<T extends MisskeyEntity>(props: {
|
||||||
moreFetching.value = false;
|
moreFetching.value = false;
|
||||||
} else {
|
} else {
|
||||||
items.value.push(...res);
|
items.value.push(...res);
|
||||||
|
if (props.useShallowRef) triggerRef(items);
|
||||||
canFetchMore.value = true;
|
canFetchMore.value = true;
|
||||||
moreFetching.value = false;
|
moreFetching.value = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue