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

ReactList waiting for scroll event before rendering dynamic items #243

Open
Razum opened this issue Nov 20, 2020 · 4 comments
Open

ReactList waiting for scroll event before rendering dynamic items #243

Razum opened this issue Nov 20, 2020 · 4 comments

Comments

@Razum
Copy link

Razum commented Nov 20, 2020

Hello!

First of all thank you very much for a such great plugin.
We noticed a little bug when we add items to react-list dynamically.
When we add batch of new elements react-list doesnt render new items until we scroll the page despite that half of the viewport is blank. You can test that behaviour here https://codepen.io/razum-the-animator/pen/MWedNww

Press "Load More" several times and then you'll see strange render behaviour

@MynockSpit
Copy link

Double-check to see if your error still persists when you fix the off-by-one error in your loadMore function. (During the the first iteration of your for loop, i is still equal to last.)

@Razum
Copy link
Author

Razum commented Jan 20, 2021

Howdy! Thanks for your note. And yep, even after fix this error still persists.

@MynockSpit
Copy link

Isn't most of that whitespace on the bottom the 700px of padding you have on .wrapper?

@Razum
Copy link
Author

Razum commented Jan 28, 2021

Sorry with the response delay. Here is a video that better describes the problem

Screen Recording 2021-01-28 at 13 21 07

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

No branches or pull requests

2 participants