Open dinataranis opened 3 months ago
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.
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.
Describe the bug I am using
VirtuosoGrid
component withendReached
method and if an initial data set is less then the container theendReached
is not fired (if I switch toVirtuoso
componentendReached
is fired) I have checked the similar issues: https://github.com/petyosi/react-virtuoso/issues/919 https://github.com/petyosi/react-virtuoso/issues/924 and as I seeVirtuosoGrid
andVirtuoso
components behave differently towardsendReached
method if the initial data set is less then the containerReproduction Virtuoso with endReached works as expected VirtuosoGrid with endReached the initial fire doesn't work
Expected behavior I expect both
Virtuoso
andVirtuosoGrid
to work the same way and to fire the initialendReached
if the data set is less then the container (at least one time)