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

Infinite scroll #38

Closed
painkkiller opened this issue Jan 16, 2021 · 1 comment
Closed

Infinite scroll #38

painkkiller opened this issue Jan 16, 2021 · 1 comment
Labels
wontfix This will not be worked on

Comments

@painkkiller
Copy link

Hello!
Nice project, but I've read documentation and really wondered is it possible to make infinite scroll with with component? In usual onScroll event I can use e.target.scrollTop === 0 to determine if scroll at top, to fetch new items from server. But in this component I've got only isAtBottom parameter. If make infinite scroll possible, at least it should be in examples.

@dizco
Copy link
Owner

dizco commented Feb 8, 2021

Hi!
The core of this library is very straight-forward, you should be able to copy-paste it and adapt it to fit your infinite scroll needs easily: https://github.com/dizco/react-scrollable-feed/blob/master/src/index.tsx
I'm open to a PR that would properly support infinite scrolling, but it's not in my short-term plans to support this. Thank you :)

@dizco dizco closed this as completed Feb 8, 2021
@dizco dizco added the wontfix This will not be worked on label Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants