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.
user.postValue(User().apply{userName = "ABC"}), or instantiate User( )before, modify the property and then post it - Stachu