The component AsyncSelectInput is hardcoding the generics that AsyncSelect from react-select/async component exposes (see current ReactSelectAsyncProps type). Due to this fact, the consumers of AsyncSelectInput using TypeScript need to cast some of the props of the component. See this example in DIscounts app.
To solve the issue, AsyncSelectInput, SearchSelectInput, and SearchSelectField should properly use the generics react-select/async provides.
The component
AsyncSelectInput
is hardcoding the generics thatAsyncSelect
fromreact-select/async
component exposes (see current ReactSelectAsyncProps type). Due to this fact, the consumers ofAsyncSelectInput
using TypeScript need to cast some of the props of the component. See this example in DIscounts app.To solve the issue,
AsyncSelectInput
,SearchSelectInput
, andSearchSelectField
should properly use the genericsreact-select/async
provides.