-
-
Notifications
You must be signed in to change notification settings - Fork 356
[Turbo] Use blocks instead of partials to render turbo-streams #1045
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
Conversation
+ {{ block('task_form') }} | ||
+ </template> | ||
+</turbo-stream> | ||
<turbo-stream action="replace" targets="#my_div_id"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing the closing block and this last turbo-stream looks extra to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well actually, this is a diff that applies to the snippet on L366, so yes, the endblock is missing and this line is here because this is just a subset of the full file
@nicolas-grekas is this ready for you ? Do you want me to handle last feedback you received ? |
@smnandre thanks for the reminder, feedback answered. |
Thank you Nicolas. |
Relies on symfony/symfony#51327 for the call to
renderBlock()
.Using
targets
with a CSS selector empowers users with useful knowledge IMHO.