Closed samuelmale closed 2 weeks ago
@CynthiaKamau this fixes the issue you reported earlier today about test orders.
Size Change: -4 B (0%)
Total Size: 1.15 MB
@samuelmale , try testing this out on edit mode , it looks like the field values are not populated
does this change fix propagating the changes downstream as well?
No, it's not related to that.
try testing this out on edit mode , it looks like the field values are not populated
I just tested it out and it works as expected for me. @CynthiaKamau Can you provide more details?
Requirements
Summary
During initialization, the form renderer registers the associated form context with the form-factory provider, which can be either a root form or a subform. This context is stored as an object reference in memory. As the user interacts with the form, the context undergoes mutations as a side-effect. In most cases, these mutations do not cause issues because they occur at deeper levels within the object tree, and most state updates perform shallow clones. However, problems arise when state mutations happen at higher levels, such as with the
formFields
state.This has caused to a bug with repeating fields, where newly cloned fields do not exist in the factory provider during submission.
This fix ensures that state updates are properly propagated, addressing the issue and maintaining consistency across the form context.
Screenshots
N/A
Related Issue
N/A
Other