Florian Walther (live streaming)
01/17/2022, 11:22 AMAndroidView
which needs to call a method.myanmarking
01/17/2022, 11:57 AMFlorian Walther (live streaming)
01/17/2022, 12:08 PMFlorian Walther (live streaming)
01/17/2022, 12:08 PMmyanmarking
01/17/2022, 12:11 PMmyanmarking
01/17/2022, 12:11 PMZoltan Demant
01/17/2022, 12:13 PMAndroidView
itself, the factory call for it might be viable for that?myanmarking
01/17/2022, 12:14 PMFlorian Walther (live streaming)
01/17/2022, 12:26 PMFlorian Walther (live streaming)
01/17/2022, 12:27 PMupdateThisThing = true
boolean and a callback to reset itZoltan Demant
01/17/2022, 12:35 PMFlorian Walther (live streaming)
01/17/2022, 12:36 PMZoltan Demant
01/17/2022, 12:41 PMLaunchedEffect(Unit)
to collect the flow & call the method. I think that makes for the best/cleanest code too, as compared to sending in a boolean & a callback to reset it!Florian Walther (live streaming)
01/17/2022, 12:46 PMZoltan Demant
01/17/2022, 12:51 PMCompositionLocal
that contains the flow or some wrapper. How deep is this composable for you?Florian Walther (live streaming)
01/17/2022, 12:53 PMFlorian Walther (live streaming)
01/17/2022, 12:56 PMAndroidView
Florian Walther (live streaming)
01/17/2022, 12:57 PMFlorian Walther (live streaming)
01/17/2022, 12:58 PMupdate
can be called multiple times. This probably makes it not suitable for side-effects like this.Florian Walther (live streaming)
01/17/2022, 1:47 PMFlorian Walther (live streaming)
01/17/2022, 1:47 PM