Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

paginate should return empty data when there have a bigger _page, but return last page data now #1549

Open
byronogis opened this issue May 28, 2024 · 0 comments

Comments

@byronogis
Copy link

"json-server": "1.0.0-beta.0".

Like there have 7 data in posts, and send:

  1. /posts?_page=1&_per_page=5, that is normal.
  2. /posts?_page=2&_per_page=5, normal too.
  3. /posts?_page=3&_per_page=5, the response is not my expected, current is same with step 2, does there should got a empty array ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant