From 3743612d62bf5b8acc722d021d6861591e623373 Mon Sep 17 00:00:00 2001 From: tnt group Date: Thu, 29 Feb 2024 22:22:15 +0800 Subject: [PATCH] fix(hooks): Fix Naive Pagination's outdated API --- src/hooks/common/table.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/common/table.ts b/src/hooks/common/table.ts index 594fc466e..de9e17383 100644 --- a/src/hooks/common/table.ts +++ b/src/hooks/common/table.ts @@ -83,7 +83,8 @@ export function useTable { + // Fix Naive Pagination's outdated API + onUpdatePage: async (page: number) => { pagination.page = page; await onPaginationChanged?.(pagination);