so a change that will trigger recomposition must be a change as .value on a Flow
c
Csaba Szugyiczki
12/07/2022, 9:33 AM
Flow -> State
o
oday
12/07/2022, 9:37 AM
change a flow’s .value, trigger the collectAsState that collects it, triggers recomposition
c
Csaba Szugyiczki
12/07/2022, 9:51 AM
In this sense yes. But you do not need a Flow to create State. You might as well create it on its own with mutableStateOf, or from an RxJava Stream, or a LiveData.
I just wanted to emphasize that the change of your State will be the reason ultimately for your recomposition, no matter what triggered it