Skip to content

Commit

Permalink
fix(pagination): update component context when the total prop changes (
Browse files Browse the repository at this point in the history
  • Loading branch information
unix authored Mar 9, 2022
1 parent 420885e commit 05c1531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pagination/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const PaginationComponent: React.FC<React.PropsWithChildren<PaginationProps>> =
isLast: page >= count,
update,
}),
[page],
[page, count],
)

useEffect(() => {
Expand Down

0 comments on commit 05c1531

Please sign in to comment.