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

AsyncLoading and infinite list #3260

Closed
g-apparence opened this issue Jan 8, 2024 · 2 comments
Closed

AsyncLoading and infinite list #3260

g-apparence opened this issue Jan 8, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@g-apparence
Copy link

g-apparence commented Jan 8, 2024

Is your feature request related to a problem? Please describe.
I am making an infinite list.
So I want each time the user gets to the end of the list to load and add new items.
The entire list should not reload and I want only to show loading animation to the end of the list.

Describe the solution you'd like
Today I have to put a "loading" property, or creating a type to my state as AsyncLoading doesn't let me set the value.
I would like to be able to put a value to AsyncLoading so I can only check the loading state using Riverpod.

state = AsyncLoading.loadMore(previous: state);

ps: love your work on Riverpod. 🙏🏻

@rrousselGit
Copy link
Owner

Can you be more specific?

AsyncLoading already includes the previous state. You don't need to add it by hand
And I don't see how that's related to infinite lists

@rrousselGit rrousselGit added question Further information is requested and removed needs triage labels Jan 8, 2024
@g-apparence
Copy link
Author

Oh sorry for this.
I completely skipped that.

You made this too easy, sorry 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants