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

How can we litmit loading item? #20

Open
Trung15010802 opened this issue Apr 20, 2024 · 5 comments
Open

How can we litmit loading item? #20

Trung15010802 opened this issue Apr 20, 2024 · 5 comments

Comments

@Trung15010802
Copy link

Trung15010802 commented Apr 20, 2024

How can i limit the number of MovieListTileShimmer? For example i want prevent user scroll to far and make hundred api requests

@bizz84
Copy link
Owner

bizz84 commented Apr 24, 2024

I think a solution could be found by using a scroll listener or NotificationListener, but I need to examine this in more detail.

@Trung15010802
Copy link
Author

I think a solution could be found by using a scroll listener or NotificationListener, but I need to examine this in more detail.

Great. Looking forward to new updates from you

@sagnik-sanyal
Copy link

did you guys find something in this direction ?

@Trung15010802
Copy link
Author

did you guys find something in this direction ?

No :3

@carlosetorresm
Copy link

A simple solution would be to add a default itemCount:

itemCount: totalResults ?? 10,

This should effectively limit the user scroll alteast during page 1 loading.

I'm having issues to test this on multiple pages since the itemCount limit my chance to scroll(?

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

4 participants