You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#2699 key is more reliable with child components (weaverryan)
This PR was merged into the 2.x branch.
Discussion
----------
key is more reliable with child components
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Docs? | yes
| Issues | Fixsymfony#1643
| License | MIT
I couldn't track down why, but for child components, `key` is more reliable. When `id` is used and a child requires re-rendering (because input props changed), the dummy element returned by https://github.com/symfony/ux/blob/2.x/src/LiveComponent/src/EventListener/InterceptChildComponentRenderSubscriber.php will not have an `id`, but with `key` it will. Smells like a bug, but `key` works
Commits
-------
304acf8 key is more reliable with child components
0 commit comments