From 33541cc00de8d662ea24aabe1a8617701a4001c3 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Tue, 6 May 2025 20:27:01 +0900 Subject: [PATCH] Update use-pagination.ts --- packages/frontend/src/use/use-pagination.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/use/use-pagination.ts b/packages/frontend/src/use/use-pagination.ts index 0be0bb6728..a705322bd0 100644 --- a/packages/frontend/src/use/use-pagination.ts +++ b/packages/frontend/src/use/use-pagination.ts @@ -184,7 +184,7 @@ export function usePagination(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); }