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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch more from remote #42

Closed
bitboxer opened this issue Aug 13, 2018 · 3 comments
Closed

Fetch more from remote #42

bitboxer opened this issue Aug 13, 2018 · 3 comments
Labels
馃挰 question Further information is requested

Comments

@bitboxer
Copy link

Is it possible to fetch more data from the remote location if the scroll is at the end? If yes, how would I build this? If not I would love to help adding that feature 馃憤 .

@bvaughn bvaughn added the 馃挰 question Further information is requested label Aug 13, 2018
@bvaughn
Copy link
Owner

bvaughn commented Aug 13, 2018

You should be able to build this on top of what's already in react-window. You're basically describing the InfiniteLoader component in react-virtualized. I believe all you should need to build this is the onItemsRendered property.

I don't think I want this functionality added to the base library, because added features like this bloated react-virtualized over time and made it harder to maintain. Perhaps we could add a link somewhere to a Gist or Code Sandbox though, showing how the technique could be achieved (if you'd like to share back). 馃槃

I'm going to close this issue for now since I don't plan on working on it. We can chat more here though if there's follow up.

@bvaughn bvaughn closed this as completed Aug 13, 2018
@bitboxer
Copy link
Author

I can totally understand that! onItemsRendered sounds like a good place to add this. Thanks for the hint. Hopefully I will be able to add this to the project I am currently freelancing on and report back. Can't promise it though, the project manager could change the priorities 馃槈.

@superandrew213
Copy link

I'm using this to detect list position (top & bottom) and get items that changed visibility. Using it for grids but should work for lists too.
https://gist.github.com/superandrew213/22aca60ff7740eadc481b5d9a4eebdca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃挰 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants