I figured that since both LiveData & Flow should be lifecycle aware that there is no reason to do this. Is there any benefit or detriment to setting them to null yourself in onCleared?
Since both LiveData and Flow are lifecycle-aware they will automatically clean up their resources in the ViewModel's onCleared()
method. So there's no need to explicitly set them to null
.