Currently the app uses react-infinite-scroll-component but isn't the best alternative.
Produce from-scratch implementations for the same. Check out alternatives such as:
- useSWRInfinite
- useInfiniteQuery (react-query)
- from-scratch implementation with scroll strategy
- from-scratch implementation with intersection observer API strategy
Reasons why one might want to migrate to other alternative:
react-infinite-scroll-component is not well-maintained library and has less community support
- Other alternatives such as
react-query and swr has better community and provides functionalities like caching etc. features
- If already using SWR (or react-query), the in-built support is GO-TO option always.
Lets brainstorm 🧠
Currently the app uses
react-infinite-scroll-componentbut isn't the best alternative.Produce from-scratch implementations for the same. Check out alternatives such as:
Reasons why one might want to migrate to other alternative:
react-infinite-scroll-componentis not well-maintained library and has less community supportreact-queryandswrhas better community and provides functionalities like caching etc. featuresLets brainstorm 🧠