Robert Jaros
02/13/2021, 1:28 AMMutableStateFlow<S>
from MutableStateFlow<S?>
?Ian Lake
02/13/2021, 1:40 AMfilterNotNull()
+ stateIn()
. You need to pick either the version that specifies exactly what initialState
you want when your MutableStateFlow<S?>
is null or use the version that suspends until a non-null value becomes availableIan Lake
02/13/2021, 1:40 AMStateFlow
is that it always has a valueRobert Jaros
02/13/2021, 1:46 AMStateFlow<S>
and I would like mutable version.Dominaezzz
02/13/2021, 1:57 AMIan Lake
02/13/2021, 2:01 AMfilterNotNull()
) https://kotlinlang.slack.com/archives/C1CFAFJSK/p1612919750413900?thread_ts=1612919750.413900&cid=C1CFAFJSKRobert Jaros
02/13/2021, 2:14 AMStateFlow<S>
I get from the stateIn()
, which maps setter call to the original stateflow, but it would require implementing MutableStateFlow
interface, which is probably bad idea.Robert Jaros
02/13/2021, 2:17 AMZach Klippenstein (he/him) [MOD]
02/13/2021, 5:37 AM