usePagination not applying pagination - code same as example #2399
-
Hello there, I have an issue where my pagination isn't getting set despite all variables being what I expect. https://stackoverflow.com/questions/62115344/react-table-usepagination-not-applying-pagination I believe my code is no different to the working example here: https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/pagination Anyone know what the issue is here? |
Beta Was this translation helpful? Give feedback.
Answered by
ayushmalviya27
Jun 5, 2020
Replies: 1 comment 1 reply
-
You're using the rows prop instead of page. Don't forget to get page from the useTable hook. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ror-y
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're using the rows prop instead of page.
Instead of
rows.map(row....
You need to use
page.map(...
Don't forget to get page from the useTable hook.