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

How I can use react-select with react-virtualized? #3613

Closed
jlramosr opened this issue Jun 8, 2019 · 1 comment
Closed

How I can use react-select with react-virtualized? #3613

jlramosr opened this issue Jun 8, 2019 · 1 comment

Comments

@jlramosr
Copy link

jlramosr commented Jun 8, 2019

I use react-select with react-virtualized to generate the options dinamically. When I scroll down on component MenuList of my Async Select, I want to load more options. Of this way, I always have loaded a few Options on my DOM, but a thousand of options to select.

I use Apollo with GraphQL to fetch and fetch more results when the user scrolls down. MenuList uses InfintyLoader, AutoSizer and List components of react-virtualized.

How I can do this, keeping the Menu open and the scroll index when I fetch new options on MenuList? When fetchMore is launched, the MenuList is re-rendered and scrollIndex comes back to 0 (first option).

@jlramosr
Copy link
Author

I use react-select-async-paginate, by @vtaits

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

1 participant