Skip to content
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

[LiveComponent] Stimulus controller inside a Live Component does not rerender #2126

Open
Nek- opened this issue Sep 3, 2024 · 1 comment
Labels
LiveComponent Status: Waiting Feedback Needs feedback from the author

Comments

@Nek-
Copy link
Contributor

Nek- commented Sep 3, 2024

Re-opening #2048 in a new issue.

TL;DR: If you have a stimulus controller inside a live component, after the live component reloads, you will experience weird issues (dom in an unexpected state) because of dom morphing feature of turbo/live components.

Examples I have:

For those interested, I summarized #2048 solutions in this article: https://wiki.swag.industries/en/symfony/ux/controller-state-after-live-update

@smnandre
Copy link
Member

smnandre commented Sep 3, 2024

Can you create a small reproducer so we can look at a concrete case of this problem and see what can be done ? :)

@smnandre smnandre added the Status: Waiting Feedback Needs feedback from the author label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LiveComponent Status: Waiting Feedback Needs feedback from the author
Projects
None yet
Development

No branches or pull requests

3 participants