Skip to content

Debounce search input in ObjectBrowserBody#8365

Open
wesleybl wants to merge 2 commits into
mainfrom
object-browser-search
Open

Debounce search input in ObjectBrowserBody#8365
wesleybl wants to merge 2 commits into
mainfrom
object-browser-search

Conversation

@wesleybl

@wesleybl wesleybl commented Jul 4, 2026

Copy link
Copy Markdown
Member

Rapid keystrokes were dispatching a burst of overlapping search requests, which could resolve out of order and cause an older, less-filtered response to visually reset the list to an unfiltered state.

Split onSearch into onSearch (event handler) and doSearch (actual search logic), and debounce doSearch by 300ms. Cancel the debounced call on componentWillUnmount to avoid state updates after unmount.

Rapid keystrokes were dispatching a burst of overlapping search
requests, which could resolve out of order and cause an older,
less-filtered response to visually reset the list to an unfiltered
state.

Split onSearch into onSearch (event handler) and doSearch (actual
search logic), and debounce doSearch by 300ms. Cancel the debounced
call on componentWillUnmount to avoid state updates after unmount.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant