Piotr Prus
05/06/2021, 1:52 PMLocal
custom variable for few of my composable functions and I would like to connect one of those with DataStore, but I do not know how to do that. The DataStore
returns flow, so I need coroutineScope to call it which is not working with the staticCompositionLocalOf
. Anyone know how to connect these two? Or should I use viewModel for that and update state on each datastore value change?