ankeetmaini / react-infinite-scroll-component

An awesome Infinite Scroll component in react.
https://react-infinite-scroll-component.netlify.com/
MIT License
2.88k stars 322 forks source link

The up-scroll function #212

Open duarte-evocorp opened 4 years ago

duarte-evocorp commented 4 years ago

The up-scroll function is not calling the function to load more data, put a working example of the up-scroll.

duarte-evocorp commented 4 years ago

When I put it to roll up, it loads all the dice and goes up there to the top, and doesn't keep scrolling up.

ankeetmaini commented 4 years ago

Can you please check the example hosted here and the source here https://github.com/ankeetmaini/react-infinite-scroll-component/blob/master/src/stories/ScrolleableTop.tsx

deepal commented 4 years ago

@duarte-evocorp I had the same problem, but silly me was using an older version of the library. You need to use 5.1.0 or later for this.