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] VirtuosoGrid - endReached doesn't call if data set is less then the container #1087

Open
dinataranis opened this issue May 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@dinataranis
Copy link

Describe the bug
I am using VirtuosoGrid component with endReached method and if an initial data set is less then the container the endReached is not fired (if I switch to Virtuoso component endReached is fired)
I have checked the similar issues:
#919
#924
and as I see VirtuosoGrid and Virtuoso components behave differently towards endReached method if the initial data set is less then the container

Reproduction
Virtuoso with endReached works as expected
VirtuosoGrid with endReached the initial fire doesn't work

Expected behavior
I expect both Virtuoso and VirtuosoGrid to work the same way and to fire the initial endReached if the data set is less then the container (at least one time)

@dinataranis dinataranis added the bug Something isn't working label May 21, 2024
@dinataranis dinataranis changed the title [BUG] [BUG] VirtuosoGrid - endReached doesn't call if data set is less then the container May 21, 2024
@erdemdev
Copy link

erdemdev commented Jun 8, 2024

I ran into this issue too. I'm glad I checked the issues section; otherwise, I would still be struggling with it. For now, I worked around it using the Intersection Observer API.

@stuartambient
Copy link

i found that endReached doesn't trigger at all even if data is more than container. There is nothing in the docs that confirms endReached is part of VirtuosoGrid.

@aderiushev
Copy link

same here

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

4 participants