Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Data not updated with limit offset pagination logic #278

Open
tanvir002700 opened this issue Jul 5, 2020 · 0 comments
Open

Data not updated with limit offset pagination logic #278

tanvir002700 opened this issue Jul 5, 2020 · 0 comments

Comments

@tanvir002700
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant