I\'m trying to trigger an update on LiveData from a coroutine:
object AddressList: MutableLiveData>() fun getAddressesLiveData(): L
Use liveData.postValue(value) instead of liveData.value = value. It is called asynchronous.
liveData.postValue(value)
liveData.value = value
From documentation:
postValue - Posts a task to a main thread to set the given value.