Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(query-builder): Modify callbacks to include more information and only fire when necessary #75082

Merged
merged 1 commit into from
Jul 29, 2024

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
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
43 checks passed
@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.

2 participants