react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Not able to calculate current page in server side pagination and page index starts from 0

Open az-jay-shah opened this issue 1 year ago • 0 comments

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.

az-jay-shah avatar Dec 09 '24 06:12 az-jay-shah