TanStackT
TanStack3y ago
1 reply
dry-scarlet

sorting

I have a table and i request a data from parent component.

I request 10 items, and then use pagination to request more 10 in another page.

How can i create a sort, that i send to backend a queryParams, with table headers title and a boolean with true = asc and false = desc with react-table?

Another point is, can i do this with another way? I Mean, this can bem used like this:
When i change the page, i send a new request to API with actual page (ex: 2, 3, 4)
Was this page helpful?