frinyvonnick / react-simple-infinite-loading

A list that infinitely loads content as user scrolls down in React
https://www.npmjs.com/package/react-simple-infinite-loading
Apache License 2.0
59 stars 13 forks source link

Add the possibility to pass down a ref to InfiniteLoader #4

Closed frinyvonnick closed 5 years ago

frinyvonnick commented 5 years ago

InfiniteLoader component has a function called resetloadMoreItemsCache that clear the cache. It is really useful for infinite loading list that have predicates or sort options.

To make this function available we need to wrap InfiniteLoading component with a forwardRef since it is a functionnal component and pass down the ref to InfiniteLoader component.

henriquepw commented 5 years ago

can I do it?

frinyvonnick commented 5 years ago

Hi @henry-ns, Thank you for considering contributing to react-simple-infinite-loading 🙏 Sure, you can! Here is a documentation that can help to do it. If you have any trouble, ask your questions here 👍