Package-level declarations
Types
Functions
Link copied to clipboard
Link copied to clipboard
fun <S : Any, A : Any> FlowReduxStateMachine<S, A>.rememberStateAndDispatch(): StateAndDispatch<S, A>
Convenient way to get a Compose State to get state update of a FlowReduxStateMachine and a function of type (Action) -> Unit
to dispatch Actions to a FlowReduxStateMachine. Under the hood State
will be updated only as long as the surrounding Composable is in use. The dispatch function (Action) -> Unit
is tight to the same Composable component and launches a coroutine to dispatch actions async. to the FlowReduxStateMachine
.