Open davidhoelzel opened 10 months ago
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this.
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!
The form inside a live-component is not re-rendered although formData changes.
I'm not sure if this is intended, thereforce I have created a reproducer-repo: https://github.com/davidhoelzel/ux-reproducer
ProviderComponent is providing data for the form of FormComponent. When ProviderComponent provides new data, the FormComponent is updated (due to "updateFromParent: true" on its LiveProp). But it seems that only those parts of the template are updated where the liveProp is explicitly used. The LiveProp of the FormComponent is updated as expected and all parts of the template where this prop is used are re-rendered. Also, the instantiateForm method is called again and the form gets re-recreated with the new formData. But the form is not re-rendered in the template.
What I've tried:
{{ form_start(form, {attr: { 'data-live-id': initialFormData}}) }}
-> no change, form is not re-renderedWhat is working:
{{ form_row(form.text, { value: initialFormData }) }}
But this becomes clumsy when there is more than one field involved ;-){{ component('FormComponent', {initialFormData: this.randomString, 'data-live-id': this.randomString}) }}
But this just leads to totally resetting the component and re-render it completely