fix(use-pagination): controlled page after delay (#4536)

* fix(use-pagination): add page to dependency for scrollTo

* feat(changeset): add changeset

* chore(changeset): update package name
This commit is contained in:
աӄա 2025-02-06 05:12:52 +08:00 committed by GitHub
parent e53e454bcd
commit 0bfc03e675
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@heroui/pagination": patch
---
add page to dependency for scrollTo (#4522)

View File

@ -298,6 +298,7 @@ export function usePagination(originalProps: UsePaginationProps) {
}
activePageRef.current = activePage;
}, [
page,
activePage,
disableAnimation,
disableCursorAnimation,