Package com.episode6.redux.compose

Functions

Link copied to clipboard
@Composable
fun <T> StoreFlow<T>.collectAsState(context: CoroutineContext = EmptyCoroutineContext): State<T>

Collects values from this StoreFlow and represents its latest value via State.

@Composable
fun <IN, OUT> StoreFlow<IN>.collectAsState(context: CoroutineContext = EmptyCoroutineContext, mapper: (IN) -> OUT): State<OUT>

Map this StoreFlow before collecting values from it.