You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have an Autocomplete component with asyncItems={handleSearch} and multipleSelect={true} it will trigger a search call for each item on mount that you define as defaultValue. Instead, it should just trigger 1 search call without a search parameter on mount or at least should be possible to skip this data fetching on mount.
When you have an Autocomplete component with
asyncItems={handleSearch}
andmultipleSelect={true}
it will trigger a search call for each item on mount that you define asdefaultValue
. Instead, it should just trigger 1 search call without a search parameter on mount or at least should be possible to skip this data fetching on mount.Caused by:
https://github.com/digipolisantwerp/acpaas-ui_react/blob/5543d9a35a10e31569fa96497f4a7e8954aeacbe/packages/autocomplete/src/models/AsyncSearchMode.js#L13
To reproduce:
The above example will result in three api calls with those values as search parameter and there's no way to prevent this.
The text was updated successfully, but these errors were encountered: