Matthew Brown
Nov 18, 2020

--

I haven't tried this out but I think autoResetPage might be what you're looking for: https://react-table.tanstack.com/docs/api/usePagination#table-options. And for the sorting, there's a similar flag autoResetSortBy that I think would do the same thing: https://react-table.tanstack.com/docs/api/useSortBy

If those flags happen to now work it also looks like you can provide the values through initialState. You'd just have to keep track of those in state and pass them into initialState whenever you're resetting the data. Hope that helps!

--

--

Matthew Brown
Matthew Brown

Written by Matthew Brown

I am a senior software engineer. My passions include software development, anything technology related, and cars.

No responses yet