Closed frinyvonnick closed 5 years ago
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 👍
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.