Reset page index in manual pagination #2593
Unanswered
minaairsupport
asked this question in
General
Replies: 0 comments
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.
-
I face issue on resetting page index manually
I handle change in data manually from
onPageChange
,onPageSizeChange
... etcwhen I change page index with
onPageChange
I stored in high-level component and pass again ReactTable as prop calledcurrentPage
in same cases I need to reset currentPage to be 0 , but the dosent works so I addedcomponentDidUpdate
callback to force reset page index even that it dosent workall my tries failed what I miss
ReactTable version 6.11.5
CodeSandbox
https://codesandbox.io/s/set-initial-page-number-in-react-table-jthci?file=/App.js
if you in page 3 and press Reset Page it should be in first page
Beta Was this translation helpful? Give feedback.
All reactions