Replies: 1 comment
-
My pagination also not work very well, sometimes need to click on it many times. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When using the pageCount setting (with a value, or even with undefined), we need to clic on the next button twice to have navication on the next page effective.
Your minimal, reproducible example
https://react-table.tanstack.com/docs/examples/pagination
Steps to reproduce
On the pagination example
https://react-table.tanstack.com/docs/examples/pagination
add pageCount: undefined in the useTable settings like this :
useTable( { columns, data, initialState: { pageIndex: 2 }, pageCount: undefined }, usePagination )
then try to navigate on next page. Each time you have to clic twice instead of once.
Expected behavior
As a user, I expect to have to clic once on the next button to navigate on the next page
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
mac & latest chrome (at least)
react-table version
7.7.0
TypeScript version
4.0.3
Additional context
No response
Terms & Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions