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

From '*' doesn't work #118

Open
kybarg opened this issue Oct 18, 2019 · 1 comment
Open

From '*' doesn't work #118

kybarg opened this issue Oct 18, 2019 · 1 comment

Comments

@kybarg
Copy link

kybarg commented Oct 18, 2019

Error is thrown, so ned to list all possible states

@vstirbu
Copy link
Owner

vstirbu commented Oct 24, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants