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

[BUG] Endless Scrolling does not work on all elements on the page #919

Closed
apupchenko opened this issue Jun 6, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@apupchenko
Copy link

Describe the bug
After loading the first lines, lazy load stops. The use Window Scroll prop is used. You can only re-provoke by changing the size

Reproduction
https://codesandbox.io/s/load-bug-x3yf4t?file=/App.js

To Reproduce
Steps to reproduce the behavior:

  1. Use the link
  2. Try to use the scroll

Expected behavior
Continue loading new rows until the user is able to use the scroll

Additional context
I used a template from this page

@apupchenko apupchenko added the bug Something isn't working label Jun 6, 2023
@petyosi
Copy link
Owner

petyosi commented Jun 6, 2023

This is due to the data set not being big enough. For better or worse, I've designed the component to not invoke the event handlers immediately on load, as it may cause an endless, or near endless loop.

If you use a page size of 200, the example works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants