Open nathanharper opened 6 years ago
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();
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