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

iOS autoPaginate ready for primetime #37

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

Conversation

faceyspacey
Copy link

This builds upon what @realaboo did in #10, primarily solving the bug he pointed out where iOS fires multiple times on first load. Basically, I just fire a flag indicating whether the first load is complete and disable infinite scrolling until that point, and voila!

Also, there is some minor fixes in _renderPaginationView():

  • it wasn't even going to show since it relied on pagination === true and not also the `autoPaginate' prop. that's fixed.
  • I also guarantee standard pagination views won't shown when autoPaginate is set. I supposed if you toggled both on, you might still have some issues, but it's not a big deal. It should be pretty obvious when those "issues" arise to toggle the one you're not using off.

Lastly, I'd commit this into @realaboo's branch, but he did his work before various changes in the latest repo. So credit goes to him, but also know that this is already combined with the latest code. It should be good to go! Give it a whirl.

This builds upon what @realaboo did, primarily solving the bug he pointed out where iOS fires multiple times on first load. Basically, I just fire a flag indicating whether the first load is complete and disable infinite scrolling until that point, and voila! 

Also, there is some minor fixes in `_renderPaginationView()`. First wasn't even going to show since it relied on `pagination === true` and not also the `autoPaginate' prop. In also guarantee standard `pagination` views aren't shown when `autoPaginate` is set.  I supposed if you toggled both on, you might still have some issues, but it's not a big deal. It should be pretty obvious when those "issues" arise to toggle the one you're not using off.

Lastly, I'd commit this into @realaboo's branch, but he did his work before various changes in the latest repo. So credit goes to him, but also know that this is already combined with the latest code.  It should be good to go! Give it a whirl.
@realaboo
Copy link

realaboo commented Apr 3, 2016

This is great! Also +1 for changing autoPagination to infiniteScrolling.

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