From 6ccb1a21b2d96896f8dabb0357eb9505a25f093d Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Wed, 14 Jan 2026 17:19:43 +0800 Subject: [PATCH] fix reactivity --- next-ui/src/composables/pagination.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/next-ui/src/composables/pagination.ts b/next-ui/src/composables/pagination.ts index cd08f641..7c586784 100644 --- a/next-ui/src/composables/pagination.ts +++ b/next-ui/src/composables/pagination.ts @@ -51,7 +51,9 @@ export function usePagination() { * @param pageSize */ export function useItemsPerPage(pageSize: MaybeRefOrGetter) { - const itemsPerPage = computed(() => (pageSize === 'unpaged' ? -1 : (pageSize as number))) + const itemsPerPage = computed(() => + toValue(pageSize) === 'unpaged' ? -1 : (toValue(pageSize) as number), + ) return { itemsPerPage: itemsPerPage,