SubscriberAwareStoreFlow

fun <State> SubscriberAwareStoreFlow(scope: CoroutineScope, initialValue: State, reducer: Reducer<State>, middlewares: List<Middleware<State>> = emptyList()): StoreFlow<State>

Creates a StoreFlow that dispatches SubscriberStatusChanged when subscribers start or stop collecting from it. The actions will fire when the first subscriber starts and the last subscriber stops collecting.