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

Fix project updates pagination #122

Merged
merged 2 commits into from
Jun 26, 2017
Merged

Fix project updates pagination #122

merged 2 commits into from
Jun 26, 2017

Conversation

swoopej
Copy link
Contributor

@swoopej swoopej commented Jun 26, 2017

scrolling to the second page of project updates is currently broken - we make a request for the second page, but we don't actually end up showing new data.

I'm mostly just following the pattern that we use in the checkout activity, but I think what's happening is we get multiple values emitted from this merge in our ProjectUpdatesViewModel, so we don't actually load the data that is returned in the first emission.

Copy link
Contributor

@luoser luoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fix is :mama-mia: and also survives rotation.

fun fact: the bug also exists for indexing thru individual updates, so if you could be so kind as to add the take(1) to the url output in UpdateActivity that'd be great

@swoopej
Copy link
Contributor Author

swoopej commented Jun 26, 2017

oh good call liza added in 5e92db6

@swoopej swoopej merged commit ac614fe into master Jun 26, 2017
@swoopej swoopej deleted the project_updates_pagination branch June 26, 2017 19:04
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

Successfully merging this pull request may close these issues.

2 participants