Arjan van Wieringen
05/28/2022, 6:06 AMState<T>
variables? So consumers of the library can use this in their composable scopes?
So the actual question is: Does it make sense to put State<T>
inside generic libraries? This creates a dependency on compose runtime, but this is my opinion nothing different than relying on RxJava. And to turn it into something like Flow we only need to use snapshotFlow
I believe.ste
05/28/2022, 8:23 AMFlow
?Arjan van Wieringen
05/28/2022, 9:03 AMMichael Paus
05/28/2022, 11:08 AMArjan van Wieringen
05/28/2022, 11:37 AMcollectAsState
function.