Can I access the current state from the view model...
# ballast
r
Can I access the current state from the view model?
c
If you have a reference to the ViewModel object, you can get the current state with
vm.observeStates().value
since it’s a StateFlow. Otherwise, you can get it from
getCurrentState()
within the InputHandler.