Open
Description
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.