react-infinite-scroller
react-infinite-scroller copied to clipboard
loadMore is not trigger when page init(content list is not enough to fill a screen)
Describe the bug loadMore not triggered when page init(content list is not enough to fill a screen),and loader triggered. To Reproduce Please clone your layout and use of react-infinite-scroller by forking this Code Sandbox and linking it here. Doing so will massively expedite getting the bug fixed! 👊
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
- OS: [e.g. Mac]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
i have a same issue....
I also faced same issue, and implemented some workaround:
- replace loader with a link:
<a onClick={loadMore}>click here to load more</a> - implemented loadMore the way that is simulates pull to down
const loadMore = () => {
ref.current.scrollTo(0, 10);
};
Where ref is a pointer to wrapper div.
Sure, it's a bug, and needs to be fixed, but just for case this workaround helps somebody, I share it. :)
This bug is still there, I solved this problem by increasing the limit value.o(╥﹏╥)o
Celeste72
can you explain? what limit?