rusackas opened a new pull request, #39970: URL: https://github.com/apache/superset/pull/39970
### SUMMARY Refs #39890. Second `useDeferredValue` adoption (after #39928). Replaces the fixed-delay `useDebounceValue` with `useDeferredValue` in the explore Datasource Panel's column/metric search box. ### Why useDeferredValue is the right fit here Same UI-filter pattern as #39928's TableExploreTree migration: - The input reads `inputValue` directly (kept responsive on every keystroke). - `matchSorter` reads `searchKeyword`, now derived via `useDeferredValue`. - React schedules the filter computation as low-priority work and interrupts it on each new keystroke, so there is no `FAST_DEBOUNCE` window holding the filtered list behind the input. The `Constants` import (only used for `FAST_DEBOUNCE`) is dropped. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF No visual change. Behaviorally: column/metric search in the explore datasource panel should feel snappier — typing never lags behind because the filter is no longer waiting on a debounce window before recomputing. ### TESTING INSTRUCTIONS 1. Open the explore view for any chart with a datasource that has many columns/metrics. 2. Type rapidly in the datasource-panel search field. Input should stay responsive. 3. Filter results should converge to the same end state as before. 4. Clearing the field should restore the unfiltered list. 5. \`npm test -- --testPathPatterns='DatasourcePanel'\` passes locally (22/22). ### ADDITIONAL INFORMATION - [x] Has associated issue: #39890 - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- 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]
