David W
02/25/2022, 3:26 AMStateFlow
into a different one?
This is what I've done, not sure if it's the best or even working...
val newStateFlow = originalStateFlow
.map { it.doTransform() }
.stateIn(scope = CoroutineScope(Job()), started = SharingStarted.Eagerly, initialValue = false)
Joffrey
02/25/2022, 8:35 AMDavid W
02/25/2022, 12:30 PMJoffrey
02/25/2022, 12:32 PMGlobalScope
(maybe even the only good use case?)