fsm-as-promised icon indicating copy to clipboard operation
fsm-as-promised copied to clipboard

From '*' doesn't work

Open kybarg opened this issue 5 years ago • 1 comments

Error is thrown, so ned to list all possible states

kybarg avatar Oct 18 '19 12:10 kybarg

Yes, the wildcard * has been inherited from javascript-state-machine dsl and has been neglected since.

Could you give an example of the nature of the transition where you need the from wildcard that cannot be handled by other handlers such as onleave or onenter? What is the number of states that have to be entered manually?

Personally, I think that the from wildcard is an anti-pattern. I think that the definition of state machine should be implicit, but I'm interested to know more about your use case.

Cheers!

vstirbu avatar Oct 24 '19 07:10 vstirbu