Setting the same pagination state in initialState fixes the problem for me.
It feels like the table instance gets recreated when it shouldn't? Sorry if the problem is on my part.
Minimal, Reproducible Example - (Optional, but Recommended)
Do you intend to try to help solve this bug with your own PR?
None
Terms
[X] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
material-react-table version
3.0.1
react & react-dom versions
18.3.1
Describe the bug and the steps to reproduce it
Described by someone on StackOverflow here: https://stackoverflow.com/questions/79003280/material-react-table-pagination-not-working-as-expected-manual-pagination-unwant
Setting the same pagination state in
initialState
fixes the problem for me. It feels like the table instance gets recreated when it shouldn't? Sorry if the problem is on my part.Minimal, Reproducible Example - (Optional, but Recommended)
From the StackOverflow post, my code is similar:
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms