Decouple editor component search input#2452
Open
Mbeaulne wants to merge 1 commit into
Open
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Jun 23, 2026
Collaborator
Author
This was referenced Jun 23, 2026
fea2281 to
c331649
Compare
eda467b to
ec1b577
Compare
c331649 to
55a2ed9
Compare
ec1b577 to
87d28db
Compare
457c9d6 to
f0d2687
Compare
0ea0a15 to
9551590
Compare
f0d2687 to
30c8633
Compare
9551590 to
76d80b5
Compare
30c8633 to
6663239
Compare
maxy-shpfy
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Improves the responsiveness of the component search by introducing a debounced query update with
useDeferredValueanduseTransition. The input field now reflects typing immediately while search results only update after a 500ms debounce delay, preventing unnecessary queries on every keystroke. The deferred query is passed to bothuseComponentSearchV2StateandComponentSearchResultsto ensure consistent behavior.Also corrects the Deep AI search tooltip to accurately reflect a limit of 100 matching components (previously stated 200).
A test is added to verify that the input value updates immediately while the results query remains unchanged until the debounce period has elapsed.
Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
ComponentSearchV2Content.test.tsxtest to validate debounce timing behavior.Additional Comments
The 500ms debounce constant (
EDITOR_SEARCH_RESULT_DEBOUNCE_MS) is defined at the module level for easy adjustment if the delay needs tuning in the future.