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

Why does it reassign from previous row? #2

Closed
sompornp opened this issue Oct 16, 2021 · 3 comments
Closed

Why does it reassign from previous row? #2

sompornp opened this issue Oct 16, 2021 · 3 comments

Comments

@sompornp
Copy link

adapter = recentNewsAdapter.withLoadStateHeaderAndFooter(

@ibrajix
Copy link
Owner

ibrajix commented Oct 16, 2021

Hello.

Can you describe clearly the issue you are facing?

@sompornp
Copy link
Author

I wonder why you reassign the adapter from its previous row (122).

@ibrajix
Copy link
Owner

ibrajix commented Oct 16, 2021

I wonder why you reassign the adapter from its previous row (122).

Oh, that was done so we could display loading state for both header and footer in paged recentNewsAdapter...so we can do stuffs like retry the request once it fails.

So technically, I am only attaching the load state to the adapter there.

@ibrajix ibrajix closed this as completed Oct 17, 2021
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