Issues Managing Symfony CollectionType with Stimulus and Live Components #2392
Unanswered
TomoyaHamasaki
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Initially, I used Symfony’s built-in delete functionality to remove segments from the collection. However, due to the complexity of the collection—each segment contains multiple nested fields and dynamic behaviors—the process was slow, causing a frustrating delay for users when managing multiple segments.
To improve the experience, I tried combining Stimulus and Symfony UX Live Components:
However, this introduced new challenges:
I’m starting to wonder if I’m missing something in the documentation. Are Live Components not intended for managing complex forms like this? Or is there a better way to manage state and performance for this type of dynamic, nested form? I'm hoping it's a result of misuse.
Here’s a simplified example of what I’m trying to achieve:
Twig
Live Component
Stimulus
Beta Was this translation helpful? Give feedback.
All reactions