Open dariush-fathie opened 3 years ago
I wouldn't expect an 'initial' state to be entered? That would imply that it is transitioning from some other state, and that wouldn't make it the initial state. So maybe you just need an extra state to be the 'initial nothing state'?
Eg. My app's state-machine starts in a 'Disconnected' state. It doesn't take a transition to get there ... that's the correct state for the state-machine to be in once it is built (it has to be in some state already!).
Thank you for your amazing library I have a problem with onEnter at initialState.
It's my code :
Result: