Suppose, I've a MutableLiveData<User>
. So if I update a variable in User let say userName
using the value like
var user = MutableLiveData<User>()
user.postValue(User())
user.value.userName = "ABC"
it won't call the observer. So I have to call a postValue to invoke it.
Is there any to invoke observer after updating one property of MutableLiveData
object.