<Kotlin flow not getting an updated value> I have ...
# forum
r
Kotlin flow not getting an updated value I have created a simple Flow to allow to “reset” any flow’s value. But when I started using it with other operators I see some weird stuff going on. Here is my code (also the playground link): import kotlinx.coroutines.* import kotlinx.coroutines.flow.* class ResettableFlow(source: Flow, private val defaultValue: T): Flow { private val resetTrigger = MutableSharedFlow() private val mergedFlow = merge(source,...