Apparao Mulpuri
01/27/2023, 1:17 PMCLOVIS
01/27/2023, 1:19 PMApparao Mulpuri
01/27/2023, 1:31 PMCLOVIS
01/27/2023, 1:32 PMpsh
01/27/2023, 2:18 PMNote that any instance of StateFlow already behaves as if(from https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/distinct-until-changed.html )operator is applied to it, so applyingdistinctUntilChanged
to adistinctUntilChanged
has no effect. See StateFlow documentation on Operator Fusion. Also, repeated application ofStateFlow
operator on any flow has no effect.distinctUntilChanged