The problem with using Flow or SharedFlow as a replacement for LiveData with Jetpack Compose is that Flow.collectAsState() require to pass as argument the initial value of the Flow. StateFlow.collectAsState() doesn't have this requirement as it use the initial value of the StateFlow. Architecture wise it seems problematic to specify the initial value from within the View, it should be up to the ViewModel (which contain this Flow) to define the initial value.
I've found your library after reading the blog posts you linked in its description, and was hopping you got a solution for this.
The problem with using
FloworSharedFlowas a replacement forLiveDatawith Jetpack Compose is thatFlow.collectAsState()require to pass as argument the initial value of theFlow.StateFlow.collectAsState()doesn't have this requirement as it use the initial value of theStateFlow. Architecture wise it seems problematic to specify the initial value from within theView, it should be up to theViewModel(which contain thisFlow) to define the initial value.I've found your library after reading the blog posts you linked in its description, and was hopping you got a solution for this.