Skip to content

Conversation

@malwilley
Copy link
Member

Found an issue uncovered with this PR: #75058

The onChange was firing far too frequently, because the onChange passed in was not memoized. We can prevent this by tracking previousQuery.

Also added some extra info to the callback, like whether the query is valid and the parsed contents since that should be useful for some implementations.

@malwilley malwilley requested a review from a team July 26, 2024 17:27
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 26, 2024
@codecov
Copy link

codecov bot commented Jul 26, 2024

Bundle Report

Changes will increase total bundle size by 127 bytes ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 28.4MB 127 bytes ⬆️

@malwilley malwilley merged commit eb193e0 into master Jul 29, 2024
@malwilley malwilley deleted the malwilley/fix/search-query-builder-callback-state branch July 29, 2024 16:18
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants