stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

Feature request: Use intersection observer api for infinite scroll pagination

Open thecannabisapp opened this issue 2 years ago • 4 comments

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.

thecannabisapp avatar May 10 '23 09:05 thecannabisapp

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.

MartinCupela avatar May 10 '23 09:05 MartinCupela

We will be happy to review your PR if you would like to help with the implementation.

MartinCupela avatar May 10 '23 09:05 MartinCupela

@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?

thecannabisapp avatar May 11 '23 08:05 thecannabisapp

@chinesehemp please check our contributions guidelines :)

MartinCupela avatar May 11 '23 10:05 MartinCupela