Hi all - weird question. You know how you can cons...
# compose
x
Hi all - weird question. You know how you can consume a
Stateflow
as
State
with
collectAsState()
; but is there a way to do the exact opposite? i.e get a flow update whenever a
State
changes?
I understand this question definitely sounds like im doing something wrong - but I'm trying something out. Right now i'm doing a
Copy code
LaunchedEffect(state) { stateFlow.emit(state) }
p
Are you talking about
snapshotFlow
x
thats the one - thanks guys