You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm doing manual pagination for a table with data received from a search request.
The pagination is working well, but If I change from page one to page two and then change the search input to another query. It will make a request with the current pageIndex 1, not 0. Which will give me the results of page 2 for that new query... not page 1. Ideally, it should show page 1 if it's a new query.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm doing manual pagination for a table with data received from a search request.
The pagination is working well, but If I change from page one to page two and then change the search input to another query. It will make a request with the current pageIndex 1, not 0. Which will give me the results of page 2 for that new query... not page 1. Ideally, it should show page 1 if it's a new query.
Is there a way to set page index manually?
Beta Was this translation helpful? Give feedback.
All reactions