Skip to content

[Live] Show a clear error multiple roots + resolve Component promise after render #588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? yes
New feature? no
Tickets Fix #501
License MIT

Hi!

A) Ignore "comment" or "text" nodes if they are at the "root" level
B) Throw a clear error if the component has multiple elements (no re-render)
C) Resolve the Component promise after re-rendering. This is how this was intended, it allows you to, for example, await component.render() and your code will continue only after the Ajax call and re-render have finished.

@weaverryan weaverryan force-pushed the live-clear-error-multiple-roots branch from cad3af2 to 5d0c947 Compare December 2, 2022 19:23
@weaverryan weaverryan force-pushed the live-clear-error-multiple-roots branch from 5d0c947 to 6faa252 Compare December 5, 2022 15:48
@weaverryan weaverryan merged commit 6f15d5d into symfony:2.x Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Live] Clear error when a component renders with more than one root component
1 participant