Skip to content

Feature request: Use intersection observer api for infinite scroll pagination #2010

Open
@thecannabisapp

Description

@thecannabisapp

Motivation
The infinite scroll pagination uses computationally expensive scroll event listeners to paginate and load more items into the list.

Proposed solution
Replace the expensive scroll event listeners with intersection observer APIs.

Acceptance Criteria
Given I am using the stream-chat-react developer,
When I open the InfiniteScroll.tsx file,
Then the scroll Element scroll event listeners are removed,
and this is replaced with intersection observers instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew capability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions