-
Couldn't load subscription status.
- Fork 401
Closed
Labels
Description
Version
3.4.5
Steps to reproduce
<AsyncTypeahead
isLoading={this.state.isLoading}
options={this.state.options}
minLength={3}
useCache={true}
onSearch={query =>
{
this.setState({ isLoading: true });
this.props.service.searchContracts(query, 20).then(res =>
this.setState({ isLoading: false, options: res?.map(o => o.number + this.contractInfo(o)) ?? [] }));
}}
placeholder="Wpisz fragment numeru umowy"
/>Expected Behavior
For all the above substrings it should find a match.
Actual Behavior
It fails to find a match at random prefixes.
It works fine if useCache is disabled.



