Hello! Is it possible to listen to State from non composable function?
z
Zun
11/12/2022, 9:41 AM
Yes. Instead of a state, you can use a flow as underlying data source. In compose you can collectAsState() and in regular activities you just collect the flow as usual