fix(dashboard): use more idiomatic react-querybuilder code #8059
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.
What changed? Why was the change needed?
The
prepareRuleGroup
function is not necessary to addid
s to query objects generated fromparseJsonLogic
since v8.3.0 ofreact-querybuilder
. This PR removes unnecessaryprepareRuleGroup
calls, updates the RQB dependency to v8.4.1, and moves an inline function prop to a stable reference to help with memoization.I don't know how this project manages dependency updates, so maybe you can't merge this directly but if nothing else it can provide a couple of usage tips.
Screenshots
N/A
Expand for optional sections
Related enterprise PR
Special notes for your reviewer
I'm the maintainer of
react-querybuilder
and I just noticed this project. It's cool to see RQB being used so effectively! If you folks have any questions or feedback for me, please reach out!EDIT: One more thing—the "here" link on this line is dead (gets a 404):
novu/CONTRIBUTING.md
Line 59 in da9336d