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!