android / android/codelab-android-paging

Codelab explanation outdated?

Open
#207 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
509
Forks
268
PR merge metrics
No merged PRs in 30d

Description

https://github.com/googlecodelabs/android-paging/blob/0e8c7973826cbb1d131d2494816356b1569bf4e1/app/src/main/java/com/example/android/codelabs/paging/ui/SearchRepositoriesViewModel.kt#L73

I think this flatMapLatest reference is part of an older version of this codelab, along with the following explanation in [step 7](https://developer.android.com/codelabs/android-paging#6):

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

Contributor guide

Open the contributing guide

Research direction

Compare app/src/main/java/com/example/android/codelabs/paging/ui/SearchRepositoriesViewModel.kt at line 73 with the explanation in step 7 of the Android Paging codelab. Determine whether the flatMapLatest description still matches the code, then update the codelab explanation so it accurately describes the current flow transformations.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
documentation, mobile
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.