michael-s-molina commented on pull request #18799:
URL: https://github.com/apache/superset/pull/18799#issuecomment-1054582706


   > `debounce` is removed for `handleOnSearch` but the actual expensive 
operations are still debounced as in `debouncedHandleSearch`.
   
   This part is not debounced:
   
   ```
   if (allowNewOptions && isSingleMode) {
       const newOption = searchValue &&
         !hasOption(searchValue, selectOptions) && {
           label: searchValue,
           value: searchValue,
           isNewOption: true,
         };
       const cleanSelectOptions = selectOptions.filter(
         opt => !opt.isNewOption,
       );
       const newOptions = newOption
         ? [newOption, ...cleanSelectOptions]
         : cleanSelectOptions;
       setSelectOptions(newOptions);
     }
     if (isAsync && !allValuesLoaded && loadingEnabled) {
       setIsLoading(search !== searchedValue);
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to