()
| 328 | /** async search */ |
| 329 | |
| 330 | const doSearch = async () => { |
| 331 | setIsLoading(true); |
| 332 | const res = await onSearch?.(debouncedSearchTerm); |
| 333 | setOptions(transitionToGroupOption(res || [], groupBy)); |
| 334 | setIsLoading(false); |
| 335 | }; |
| 336 | |
| 337 | const exec = async () => { |
| 338 | if (!onSearch || !open) return; |
no test coverage detected