use-http
use-http copied to clipboard
Data not updated with limit offset pagination logic
Bug In limit offset pagination, when page limit is 5 and current position in last page of data. Then change the page limit size 5 to 25. It will first change the page 0, call then api with page 0, limit 5 and update the data, then change the limit 25, it call the api with page 0, limit 25, and not updated the data.
⚠️ Codesandbox ⚠️ https://codesandbox.io/s/beautiful-kalam-holcd?file=/src/App.js
To Reproduce Steps to reproduce the behavior:
- Go to 'Last page from pagination with page limit 5'
- Now change page limit 25
- See it will not update the data.
Screen cast of bug: https://youtu.be/FTHz3fCzu3s