Feature request: Use intersection observer api for infinite scroll pagination
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.
Hello @chinesehemp , thank you for filing this feature request. This seems like a low hanging fruit :). We cannot give you an ETA for delivery though.
We will be happy to review your PR if you would like to help with the implementation.
@MartinCupela, sure, I can take a look. I've already implemented this in my own app. How do I create a pull request? I have the repo cloned, but I can't create and publish any branches. Do I need to fork and then create a PR from my forked repo?
@chinesehemp please check our contributions guidelines :)