Skip to content

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

@jlramosr

Description

@jlramosr

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions