<Compose UI not waiting for viewModel's coroutine ...
# stackoverflow
r
Compose UI not waiting for viewModel's coroutine results. GoogleMap composable I have a compose screen that shows Google Maps. I'm using this state model: data class CragsOnMapsState( val currentLocation: Location? = null, val cragsList: List, val gymsList: List, val cragsButtonPressed: Boolean ) currentLocation always starts as null. I want the map to start pointing at the user's location and to get the location I do this on the VM: private val _state = MutableStateFlow( CragsOnMapsState( cragsList = listOf(),...