react-paginate icon indicating copy to clipboard operation
react-paginate copied to clipboard

BUG in initialPage props

Open sagartmg opened this issue 2 years ago • 1 comments

when using initalPage Props, the onPageChange function gets called automatically

sagartmg avatar May 10 '23 08:05 sagartmg

Will the disableInitialCallback-prop solve it for you? It should prevent onPageChange from being triggered on the initial render.

<ReactPaginate
  // ...other props
  initalPage={0}
  disableInitialCallback
  onPageChange={() => {}}
/>

henrikgundersen avatar Apr 04 '25 09:04 henrikgundersen