ember-fsm icon indicating copy to clipboard operation
ember-fsm copied to clipboard

Initial State: Support for callbacks

Open tobsch opened this issue 9 years ago • 2 comments

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

tobsch avatar May 09 '15 06:05 tobsch

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.

heycarsten avatar May 12 '15 18:05 heycarsten

:+1: I would use this

hhff avatar May 13 '15 09:05 hhff