Update use-pagination.ts

This commit is contained in:
syuilo
2025-05-06 20:27:01 +09:00
parent 5586ad0451
commit 33541cc00d
+1 -1
View File
@@ -184,7 +184,7 @@ export function usePagination<T extends MisskeyEntity>(props: {
}
function pushItems(oldItems: T[]) {
if (newItems.length === 0) return; // これやらないと余計なre-renderが走る
if (oldItems.length === 0) return; // これやらないと余計なre-renderが走る
items.value.push(...oldItems);
if (props.useShallowRef) triggerRef(items);
}