When loading the initial data of a form, should we perform a unique add-form-config, or are there additional steps needed for the subforms to function properly? I have a field containing a list of entities that serve as subforms (similar to the :person/phone-numbers example in the book). However, the fs/dirty-fields feature does not detect changes when I edit an existing entity, although it does recognize when I add a new one.
The entity I’m trying to change has form config, and if I look it up in the DB, its pristine state is different from the props.
add-form-config is automatically recursive if you give it the entire tree, and it will not reinit anything in that tree that already has data. add-form-config* works on a normalized db. If you’re adding a new CHILD, then yes, you have to add form config to it before merge.