I would like to understand how to use this library with Jetpack Compose. IIUC, this library can be used to build Business Logic and ViewModels, and then @Composables can consume the state-flows with .collectAsState().
Is that correct? If so, would .collectAsState() introduce too much additional overhead?
Alternatively, is it possible to create a class that implements both State and StateFlow to avoid code and memory duplication?
I have a simple console application that I want to use 'derived' to map some state flows
can I do that without Dispatchers.Main ?
I can't figure out why derived needs the Main Dispatcher . (why not using Dispatchers.Default ? by default)