Pagination - how to start pageIndex from 1 not 0?
My initalPagination is
but when I open a select menu with
pageSize
values and select e.g. 20
the pageIndex is 0.
How to set the pageIndex
to start from 1 not from 0?
https://codesandbox.io/p/sandbox/sweet-darkness-md8pvc?welcome=true&file=README.mdsweet-darkness-md8pvc
CodeSandbox is an online editor tailored for web applications.

3 Replies
rival-blackOP•3y ago

rival-blackOP•3y ago
Why pageIndex changes to 0 when I change pageSize? I declared the pageIndex to start from 1, did I?
any1?
rare-sapphire•3y ago
Why do you need it to start at 1 and not 0?