Jake Boone
Jake Boone
Thank you so much for the detailed report! My thought process while reading this was something like, "Well _ackshually_ it uses a string representation of the `path`, which is a...
Sounds good. I _may_ release a v4.5.3 with this fixed if I get time. Also, copying the `RuleGroup` component should work but I'd recommend using [patch-package](https://www.npmjs.com/package/patch-package) instead.
FYI, [this is how I fixed it](https://github.com/react-querybuilder/react-querybuilder/commit/fc19f944a4bbef64e5ba43d986128398387a51d7#diff-77d3b960ea8130321c4217a229bf7dc6e86185e6034ed6467ed651aec6634e09R302).
I'll see what I can do
@jbailleul I just released v4.5.3 🎉 (This issue will remain open until #370 is merged into `main`.)
Do you have specific questions about `RuleType`? I feel like that one is fairly straightforward. `RuleGroupTypeAny`, however, can get weird since it can be either `RuleGroupType` or `RuleGroupTypeIC`.
> `formatQuery.ts(348,20): error TS2339: Property 'field' does not exist on type 'RuleType | RuleGroupType'.` > > This error is very confusing, why is this 'field' not recognized, it should result...
Closing in favor of #386.
I think you're referring to `findRule`, which was [removed in v4.0.0](https://github.com/react-querybuilder/react-querybuilder/releases/tag/v4.0.0) in favor of [`findPath`](https://react-querybuilder.js.org/docs/api/misc#findpath). Is there a feature you need?
Are you referring to the [v3.12.1 README](https://github.com/react-querybuilder/react-querybuilder/blob/main/README.v3.12.1.md)? That's the only place [I could find "findRule" in the repo](https://github.com/react-querybuilder/react-querybuilder/search?q=findRule). That file mentions at the top that it's for an older version...