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

Add infinite scroll for async loading #1303

Closed
juliensnz opened this issue Oct 14, 2016 · 3 comments
Closed

Add infinite scroll for async loading #1303

juliensnz opened this issue Oct 14, 2016 · 3 comments

Comments

@juliensnz
Copy link

Hello everyone,

This lib is really awesome and a really good replacement/alternative to select2. However there is one missing feature that I really need: infinite scroll for async loading.

So I would like help and implement it and propose a PR. Before doing so, I would like to know if this idea is OK for you and if you are open to contributions for this kind of features.

Without getting in a lot of details, the idea is to add a scroll detection on the dropdown element and detect if you are at the end of the list. If it's the case, the loadOptions will be triggered with a new page argument. The results will be append to the result list infinitely.
We could handle the last page (and avoid unnecessary loading) if the server returns an empty response or give the ability to the developper to handle it.

What do you guys think?

@TheSharpieOne
Copy link
Contributor

Have you seen #1237?

@nafg
Copy link
Contributor

nafg commented May 25, 2018

There's https://github.com/vtaits/react-select-async-paginate

@bladey
Copy link
Contributor

bladey commented May 27, 2020

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues / pull requests.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.

If you aren't using the latest version of react-select please consider upgrading to see if it resolves any issues you're having.

If you feel this issue / pull request is still relevant and you'd like us to review it, please leave a comment and we'll do our best to get back to you.

@bladey bladey closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants