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
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