google-developer-training/android-kotlin-fundamentals-apps

_eventNetworkError shoud use by lazy

mobilekosmos opened this issue · 0 comments

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>()
    }