//Extensions for Jetpack Lifecycle/it.czerwinski.android.lifecycle.livedata/switch

switch

[androidJvm]
Content
fun <T> LiveData<LiveData<T».switch(): LiveData<T>
More info

Converts LiveData that emits other LiveData into a single LiveData that emits the items emitted by the most recently emitted LiveData.