@Mikolaj Leszczynski can we change the public val stateFlow: Flow<STATE> in Container to public val stateFlow: StateFlow<STATE>. Also while initialzing container in viewmodel we will be setting up initial state. In jetpack compose while consuming this I've to set that initial value again. Please let me know your thoughts on this, I can add the same on github discussion
@Composable
fun SomeCompose(viewModel: SomeViewModel){
val someState = viewModel.container.stateFlow.collectAsState(initial = initialState)
}
we can get initial state from (Mutable)StateFlow and collectAsState()