Name Description Size
ComposeExtensions.kt Starts observing this [Store] and represents the mapped state (using [map]) via [ComposeState]. Every time the mapped [Store] state changes, the returned [ComposeState] will be updated causing recomposition of every [ComposeState.value] usage. The [Store] observer will automatically be removed when this composable disposes or the current [LifecycleOwner] moves to the [Lifecycle.State.DESTROYED] state. 5432
Fragment.kt Helper extension method for consuming [State] from a [Store] sequentially in order inside a [Fragment]. The [block] function will get invoked for every [State] update. This helper will automatically stop observing the [Store] once the [View] of the [Fragment] gets detached. The fragment's lifecycle will be used to determine when to resume/pause observing the [Store]. 5142
StoreExtensions.kt Registers an [Observer] function that will be invoked whenever the state changes. The [Store.Subscription] will be bound to the passed in [LifecycleOwner]. Once the [Lifecycle] state changes to DESTROYED the [Observer] will be unregistered automatically. The [Observer] will get invoked with the current [State] as soon as the [Lifecycle] is in STARTED state. 9484
View.kt Helper extension method for consuming [State] from a [Store] sequentially in order scoped to the lifetime of the [View]. The [block] function will get invoked for every [State] update. This helper will automatically stop observing the [Store] once the [View] gets detached. The provided [LifecycleOwner] is used to determine when observing should be stopped or resumed. Inside a [Fragment] prefer to use [Fragment.consumeFrom]. 1438