It seems the totalpages is not changing even if the pages in the reacttable component changes
Are you using server-side data? The only reason to manually set pages is if you are using server-side data.
If you are, you might simply be missing the manual prop. This tells react table to use the data "as-is" without slicing or paginating it, and also overrides the page count with the pages prop you pass.
Does that help?
It works
Most helpful comment
It works