react-jsonschema-form-conditionals icon indicating copy to clipboard operation
react-jsonschema-form-conditionals copied to clipboard

doRunRules function run twice if I have some rules to modify the formData.

Open toanqc opened this issue 4 years ago • 0 comments

So I have some rules that modify the formData of the JsonForm, e.g if I have the rule to copy the value from one property to another property in the formData, then I see that the doRunRules will run again since it compares the before-run-formData with the after-run-formData.

Line 56: https://github.com/RXNT/react-jsonschema-form-conditionals/blob/886cd95c6fe7f2788def2360ca1086dd134e67ab/src/rulesRunner.js#L56

@mavarazy: Any idea why we're doing this?

toanqc avatar Aug 01 '20 02:08 toanqc