selectAsState

Selects part of a state using given selector as a Compose State.


@Composable
fun <AppState, Selected> Store<AppState>.selectAsState(selectorFunction: SelectorFunction<AppState, Selected>): State<Selected>

Selects part of a state as a Compose State from composition local store using selectorFunction.


@Composable
fun <AppState, Selected> CompositionLocal<Store<AppState>>.selectAsState(selector: Selector<AppState, Selected>): State<Selected>

Selects part of a state as a Compose State from composition local store using selector.