allow adding Actions directly to Stateful Component Triggers
It would be great if stateful component triggers (or maybe triggers in general) could support actions directly within the component itself.
Right now, in my workflow, when a button inside a component is clicked, I often need to update multiple elements to different values. However, to achieve this using actions, I need to:
Create an additional trigger in the current view model
Data bind it (target to source) to this new trigger
Set up the related logic inside the state machine
This adds extra setup for interactions that could potentially be handled directly inside the component property or trigger itself.
It would also make the Stateful Component feature even more versatile. Right now, even though you no longer need to create multiple instances for each component, you still need to create extra triggers and bind them to different component triggers depending on the interaction.
Being able to attach actions directly to stateful component triggers would make components much more self-contained and reusable, while also simplifying interaction logic and reducing the amount of setup needed for common UI behaviors.