frinyvonnick / react-simple-infinite-loading

A list that infinitely loads content as user scrolls down in React

Home Page:https://www.npmjs.com/package/react-simple-infinite-loading

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the possibility to pass down a ref to InfiniteLoader

frinyvonnick opened this issue · comments

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.

can I do it?

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 👍