react-infinite-scroll-component
react-infinite-scroll-component copied to clipboard
next is being called on horizontal scroll
When scrollableTarget has visible horizontal scroll and does not have vertical scroll. Then scrolling sideway triggers next callback.
Code example: https://codesandbox.io/s/red-lake-h48xh?file=/src/index.js
Hi @oriamd the error is on your side... you are saying explicit hasMore={true}, so, the fetch is executed when the scroll moves

@gabe2code-opstalent this was taken from the Doc example just for the simulation. I don't think next should be called on horizontal scroll, fetching more data should be executed on vertical scroll