hoc081098 / GithubSearchKMM-Compose-SwiftUI

🍭 GithubSearchKMM - Github Repos Search - Android - iOS - Kotlin Multiplatform Mobile using Jetpack Compose, SwiftUI, FlowRedux, Coroutines Flow, Dagger Hilt, Koin Dependency Injection, shared KMP ViewModel, Clean Architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When we should use flatMapLatest or flatMapConcat

Dalakoti07 opened this issue · comments

First of all thanks for the amazing reactive and coroutine setup.

I am a bit new to reactive programming and the Rx family.

In GithubSearchSideEffects.kt file can you help and tell which decisions helps in deciding if flatMapLatest or flatMapConcat need to be used.

Like in searchAPICall you have used flatMapLatest

and on next page and retry you have used flatMapConcat

Can you please explain rationale behind this?