8000 Feature Request: Force Boundary Check · Issue #277 · seatgeek/react-infinite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Feature Request: Force Boundary Check #277

Open
nathanharper opened this issue Apr 11, 2018 · 1 comment
Open

Feature Request: Force Boundary Check #277

nathanharper opened this issue Apr 11, 2018 · 1 comment

Comments

@nathanharper
Copy link

Would it be possible to expose the mechanism that detects if the component needs to start loading? I'm using the window as the scroll container, and while it works well on smaller screens, if i have a large vertical screen i need to shrink the window and scroll down for it to understand that it needs to start loading. It would be nice to force the component to check if it needs to go again after the initial load. I was thinking sort of like what react-lazyload does with forceCheck: https://github.com/jasonslyvia/react-lazyload#forcecheck

@nathanharper
Copy link
Author

It would be cool to have a slightly cleaner way of doing this, but in case anybody else is facing the same issue, I was able to solve my problem by assigning the Infinite component to a ref and calling:

this.infinite.infiniteHandleScroll();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0