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?
Hi,
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
andStateFlow
to avoid code and memory duplication?thanks!