Closed dmatteo closed 9 years ago
I'd happily merge a PR adding promise support for asyncOptions
Do you think it would be better to create another prop for that or just "extend" asyncOptions
?
I am worried about adding unnecessary complexity to asyncOptions
here.
After a bit of research, I'm more convinced we should have a different prop for the promises, or break the current API with asyncOptions
and always assume a promise is passed in.
Detecting promises with certainty is expensive: https://github.com/promises-aplus/promises-tests
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:
Any support or interest for a PR?