You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see the rationale, but atm I myself doesn't have a use case for that. So patches welcome.
Some considerations:
allowed transitions could be from either the leaf state itself, or any of its ancestors.
for transitions withs guards, the guard is going to be evaluated, but I guess this is fine since guards are for most of the time are just pure functions of current state.
Thanks. I added this into my preprocessor for clj-statecharts, I can now enrich and precompute things I need, so not in an urgent need of this now at library level. If you want to close this, ok for me. Happy to do a PR at some point, when needs and impls have setteled. Cheers.
XState has an api to ask which signals are allowed given the current state:
This is really important as this information can be used to enable/disable & hide/show action buttons on uis based on their current availability.
I propose clj-statecharts to have a function of
machine state -> State
, e.g.The text was updated successfully, but these errors were encountered: