<p dir="auto">If you render the repeated fields individually, e.g. form_row(field_name.first) and form_row(field_name.second), the fields will each be rendered an additional time when using form_rest(form).</p>
<p dir="auto">Hope this helps!</p>
<h3 dir="auto">Assume this scenario</h3>
<ol dir="auto">
<li>The symfony application registers a listener with "prototype" scope in the service container</li>
<li>The application uses <code class="notranslate">TraceableEventDispatcher</code></li>
<li>The application is dispatching the event which is listened by the service defined in step 1</li>
</ol>
<h3 dir="auto">What is problematic</h3>
<p dir="auto"><code class="notranslate">TraceableEventDispatcher</code> is trying to replace the original listener with the new <code class="notranslate">WrappedListener</code>.<br>
The dispatcher correctly adds the new <code class="notranslate">WrappedListener</code>.<br>
But it fails to remove the original listener.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">The listener's method is invoked twice:</p>
<ul dir="auto">
<li>first call is in the <code class="notranslate">WrappedListener</code></li>
<li>second call is in the original listener</li>
</ul>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Only one event is dispatched so only one invocation of the listener's method is expected.</p>