Skip to content

Implement autoLoad={false} in Select.Async  #1216

@f0urfingeredfish

Description

@f0urfingeredfish

In the current documentation autoLoad={false} is listed as an option to stop the Async Select from loading when the component mounts.
https://github.com/JedWatson/react-select#async-options

This isn't currently implemented.
Look at:
https://github.com/JedWatson/react-select/blob/master/src/Async.js#L82

FIX:
Add autoLoad as an option with a default of true.
Check autoLoad on componentDidMount to determine if it should fetch.

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