From 05c153148ced1b898fe2eba78627d3fa20a534a8 Mon Sep 17 00:00:00 2001 From: witt Date: Wed, 9 Mar 2022 11:06:23 +0800 Subject: [PATCH] fix(pagination): update component context when the total prop changes (#754) --- components/pagination/pagination.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pagination/pagination.tsx b/components/pagination/pagination.tsx index d0ed29287..dc61c4dcc 100644 --- a/components/pagination/pagination.tsx +++ b/components/pagination/pagination.tsx @@ -65,7 +65,7 @@ const PaginationComponent: React.FC> = isLast: page >= count, update, }), - [page], + [page, count], ) useEffect(() => {