Codelab explanation outdated?
isaialvarado opened this issue · comments
I think this flatMapLatest reference is part of an older version of this codelab, along with the following explanation in step 7:
The UiAction.Scroll Flow has some extra transformations applied to it. Let's go over them:
shareIn: This is needed because when this Flow is ultimately consumed, it is consumed using a flatmapLatest operator. Each time the upstream emits, flatmapLatest will cancel the last Flow it was operating on, and start working based on the new flow it was given.