_eventNetworkError shoud use by lazy
mobilekosmos opened this issue · 0 comments
mobilekosmos commented
Shouldn't this use by Lazy instead? otherwise the observer is being called already on initialization before fetching the list.
private val _eventNetworkError: MutableLiveData<Boolean> by lazy {
MutableLiveData<Boolean>()
}