Skip to content

Need to reset the page Index in table's state when search occurs #2864

Answered by umarluqman
Waqqars987 asked this question in Q&A
Discussion options

You must be logged in to vote

You can take a look at this
https://codesandbox.io/s/react-table-with-global-states-pagination-index-ny4kj?file=/src/Listing.js:4367-4454

Basically, it uses the global states (page index from an API) instead of the table local state when the user is not using the built-in pagination function.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Waqqars987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants