Skip to content

Commit

Permalink
fix(react-pagination): add active page to memoized callback deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tianenpang committed Jul 19, 2022
1 parent 7ca9008 commit 641f4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/use-pagination/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const usePagination = ({
onChangeActivePage(pageNumber);
}
},
[total],
[total, activePage],
);

const next = () => setPage(activePage + 1);
Expand Down

0 comments on commit 641f4c3

Please sign in to comment.