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)
1 Reply
genetic-orangeOP•3y ago
This is my request url with queryParams
skip and take is pagination
storeName is the search text field
columnTable and columnTableSorted is the sort by column