codelab-kotlin-coroutines
codelab-kotlin-coroutines copied to clipboard
An wrong type in Learn advanced coroutines with Kotlin Flow and LiveData
In step 14. Controlling concurrency with flow Open up PlantListViewModel.kt, and add this to the init block: init { clearGrowZoneNumber() growZone.mapLatest { growZone -> ... } "growZone.mapLatest" is wrong, the correct code is : growZoneFlow.mapLatest