-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Looking at the doc here https://github.com/JedWatson/react-select#async-options and after having tried a bit, it doesn't seem that asyncOptions is able to use promises.
Being able to do something like this would be great:
render() {
return (
<Select
name={this.props.name}
asyncOptions={this.fetchOptions.bind(this)}
onChange={this.handleChange.bind(this)}
valueRenderer={this.renderValue} />
);
}
fetchOptions(query) {
return fetch(`some/uri/with/${query}`)
.then((response) => {
return response.json();
})
}Any support or interest for a PR?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels