Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thecannabisapp opened this issue May 10, 2023 · 4 comments
Labels
feature New capability

Comments

@thecannabisapp
Copy link

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 thecannabisapp added the feature New capability label May 10, 2023
@MartinCupela
Copy link
Contributor

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
Copy link
Contributor

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

@thecannabisapp
Copy link
Author

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

@MartinCupela
Copy link
Contributor

@chinesehemp please check our contributions guidelines :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New capability
Projects
None yet
Development

No branches or pull requests

2 participants