Package com.episode6.redux.subscriberaware
Types
Link copied to clipboard
data class SubscriberStatusChanged(val subscribersActive: Boolean = false) : Action
Content copied to clipboard
An Action that is dispatched to a StoreFlow that is created with SubscriberAwareStoreFlow
Functions
Link copied to clipboard
fun <State> SubscriberAwareStoreFlow( scope: CoroutineScope, initialValue: State, reducer: Reducer<State>, middlewares: List<Middleware<State>> = emptyList()): StoreFlow<State>
Content copied to clipboard
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.