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

Prevent from fetching when no more datas #4

Open
LaurentSanson opened this issue Oct 29, 2020 · 1 comment
Open

Prevent from fetching when no more datas #4

LaurentSanson opened this issue Oct 29, 2020 · 1 comment

Comments

@LaurentSanson
Copy link

Hi,

I was wondering how would you prevent from fetching when there's no more data?

I've implemented your work in my project, but it keeps fetching when I'm scrolling down to the bottom page...

Cheers

@hippieZhou
Copy link

first of all, we should to known that there is no data from frontend client, you can return a totalPages from backend api, such like this :

image

In this way, you can find whether there is more data to load based on currentPage and totalPages.
from your question, this is the way I used it in my project.

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

2 participants