This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
Releases: niconiahi/chakra-paginator
Releases · niconiahi/chakra-paginator
v0.7.2
v0.7.1
v0.7.0
Features
Add new usePaginator
custom hook!
It allows you to easily calculate pagination values that you may need to pass to Paginator
component.
Altough you are not constrained to use it at all, it's just for you to remove repetitive code that you may end up having
v0.6.5
Fixes
- Now
pagesQuantity
can beundefined
, keeping in mind that some async action may be needed to determine this number. When this is the case,pages
will be an empty array, so nothing will be render - Updated the README to contain a real world example scenario and how I would solve that
- Updated the Codesandox to include the already mentioned example
v0.6.3
Manual set of currentPage with restrictions
Now you can manually set the currentProp but:
- It has to be 1 or higher
- It has to be less than the pageCount (can't go over the last one)
- It has to be a whole number
- Console errors will show up when invalid pages are being passed down