I run into a strange behavior difference when using molecule+turbine, so I opened
https://github.com/cashapp/molecule/issues/249 though I can't understand if it's a bug or working as intended nor who's the library responsible for this behavior (molecule, turbine or compose?).
Any input is appreciated so I can move the issue to the appropriate repo, do more debugging or close it.
The gist of it is that mutating a
MutableState
twice usually causes 2 recompositions (one per mutation), but doing the same inside a
launch{}
lambda will only cause 1 recomposition.
Repro test case is included in the issue.