dispatch
Gets a dispatch lambda from the Store provided by localStoreOf.
An example of a composable that dispatches an action:
@Composable
fun IncrementButton() {
val dispatch = LocalCounterStore.dispatch
Button(onClick = { dispatch(Action.Increment) }) {
Text(text = "Increment")
}
}
Content copied to clipboard