onEnter

fun onEnter(handler: suspend (state: State<InputState>) -> ChangedState<S>)

Triggers every time the state machine enters this state. It only triggers again if the surrounding in<State> condition is met and will only re-trigger if in<State> condition returned false and then true again.

An ongoing handler is cancelled when leaving this state.