vector / com.haroldadmin.vector / VectorViewModel / currentState

currentState

val currentState:S

Access the current value of state stored in the stateStore.

THIS VALUE OF STATE IS NOT GUARANTEED TO BE UP TO DATE This property is only meant to be used by external classes who need to get hold of the current state without having to subscribe to it. For use cases where the current state is needed to be accessed inside the ViewModel, the withState method should be used