react-data-table-component
react-data-table-component copied to clipboard
Not able to calculate current page in server side pagination and page index starts from 0
Issue Check list
- [X] Agree to the Code of Conduct
- [ ] Read the README
- [X] React 18.8.0+
- [ ] You installed
styled-components
Describe the bug
On server side pagination, if starting of page is 0 and want to override current page. Pagination didn't work properly.
To Reproduce
Use react table component and set starting of page index to 0.
Expected behavior
Pagination should show page number from 1-11 when starting page index is 0
Code Sandbox, Screenshots, or Relevant Code
Versions (please complete the following information)
- React: 18
- OS: Ubuntu
- Browser : Chrome
Additional context
Set starting of pagination to 0.