state

abstract val state: StateFlow<OnInit.State>

The initialization state.

On ViewModel initialization the trigger function is called and any errors happening during initialization will cause the state to become State.Error. In that case you can call trigger again to restart processing only the failed observers.