react-infinite-scroll-component icon indicating copy to clipboard operation
react-infinite-scroll-component copied to clipboard

When all items are in view but still need to fetch more it does not fetch

Open MariuzM opened this issue 2 years ago • 4 comments

When i scroll everything is fine i get the trigger to then fetch more data, but if i make browser window bigger that shows all the items then it does not trigger fetch even tho props i'm telling there is more data.

Same issue is happening on your example also https://codesandbox.io/s/yk7637p62z

No loading trigger because all items are in view. but if i make smaller window and scroll then i have trigger. image

MariuzM avatar Jan 18 '23 16:01 MariuzM

+1 I have this issue.

Here is a sample from me: https://codesandbox.io/s/reverent-taussig-452jyb?file=/src/index.js

Basically I load 3 items and I have more, yet since the scrollbar is not shown, no more will be loaded

philmetzger avatar Jan 19 '23 18:01 philmetzger

I think there is no solution right now: https://github.com/ankeetmaini/react-infinite-scroll-component/issues/185

philmetzger avatar Jan 19 '23 19:01 philmetzger

Is there any solution? Im facing the same issue

dnntung avatar Feb 12 '23 18:02 dnntung

@dnntung Use this fork: https://github.com/danbovey/react-infinite-scroller It solved this issue for me.

inkiltie avatar Feb 20 '23 00:02 inkiltie