In my case, I have 300 results with Laravel API resource paginated to 5 items per page. When I navigate to any page, I agree that obviously it is changing the pagination data according to the response. But It should be reset when you type in a new filter because it is sending axios request along with the current page number and ends up with no results.
{"page":1,"filter":"cor","sort":{"fieldName":"checked_in_at","order":"asc"}}
// returns 25 results
// I navigate to the 3rd page then I type another filter value
{"page":3,"filter":"anna","sort":{"fieldName":"checked_in_at","order":"asc"}}
// No results because current page is 3 and there is only 1 record
I think, resetting the pagination values if the filter value is different than the previous request, would be a good solution for this.
Or if there is any other way to fix it myself locally, please give me a hint. I would gladly catch up from there.
Thank you.
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
In my case, I have 300 results with Laravel API resource paginated to 5 items per page. When I navigate to any page, I agree that obviously it is changing the pagination data according to the response. But It should be reset when you type in a new filter because it is sending axios request along with the current page number and ends up with no results.
I think, resetting the pagination values if the filter value is different than the previous request, would be a good solution for this. Or if there is any other way to fix it myself locally, please give me a hint. I would gladly catch up from there. Thank you.