I just can\'t see how to chain LiveData from Repo to VM, so I have tried to boil this down to the most simple of example!:
Fragment
You're changing mCurrentName
(the LiveData variable itself as opposed to it's contents) after you start observing it. The guidance seems to be to not use LiveData
in Repository layer (use Coroutines/Flow instead for example)....but for now you could have something like following (or perhaps use one of the LiveData Transformations)
private val mCurrentName = firestoreRepository.currentName()
fun changeText(){
firestoreRepository.changeText()
}