ember-fsm
ember-fsm copied to clipboard
Initial State: Support for callbacks
Hi,
it would be great if a function would be accepted as initialState to properly sync the FSM with a model that comes with a state and is persisted.
Best, Tobias
Hey @tobsch, I agree that the state should be dynamically settable. I'll look into adding a hook for you to determine initialState
, being able to connect to currentState
via a computed property seems like a reasonable thing you should be able to do as well.
:+1: I would use this