Skip to content

Infinite Scroll Optimizations #8

@sohamsshah

Description

@sohamsshah

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 🧠

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions