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: Forbid the addition of 0 to 9 items #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amuyu
Copy link

@amuyu amuyu commented Oct 19, 2017

If you turn the screen off during pagination and turn it on for a while, the item is added from 0 to 9.
Like this,

Item 0
Item 1
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 0
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 20
Item 21
Item 22
Item 23
Item 24
Item 25
Item 26
Item 27
Item 28
Item 29

The reason is that _paginator.onNext(0) is called in onStart when the screen is on.
If emit the number of the list in onStart, it display normally.

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.

1 participant