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

When instantiatas, current state is not loaded. #15

Closed
casamia918 opened this issue Jul 13, 2017 · 1 comment
Closed

When instantiatas, current state is not loaded. #15

casamia918 opened this issue Jul 13, 2017 · 1 comment

Comments

@casamia918
Copy link

casamia918 commented Jul 13, 2017

Thank you for writing this mixin. While using, I found a problem. I'm using LB version 3.

Problem is, the StateMachine does not load current state. When I print StateMachine's 'current' local variable after I load my model instance(of course by find method), it always undefined. Needless to say, the error message is "Invalid event in the current state". My model's stateProperty name is 'state'.

I temporarily detour this problem by passing "allowForce" option when call the event method. But it's annoying and defenitely looks like unintended behvior. Can you fix this?

@giano
Copy link

giano commented Sep 14, 2018

Same here.

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