use-http icon indicating copy to clipboard operation
use-http copied to clipboard

Data not updated with limit offset pagination logic

Open tanvir002700 opened this issue 5 years ago • 0 comments

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:

  1. Go to 'Last page from pagination with page limit 5'
  2. Now change page limit 25
  3. See it will not update the data.

Screen cast of bug: https://youtu.be/FTHz3fCzu3s

tanvir002700 avatar Jul 05 '20 08:07 tanvir002700