Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite Scroll Optimizations #8

Open
sohamsshah opened this issue Aug 7, 2021 · 0 comments
Open

Infinite Scroll Optimizations #8

sohamsshah opened this issue Aug 7, 2021 · 0 comments

Comments

@sohamsshah
Copy link
Owner

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 🧠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant