Companion

object Companion

Functions

Link copied to clipboard
fun <M, F> dispatch(vararg effects: F): Next<M, F>
fun <M, F> dispatch(effects: Set<F>): Next<M, F>

Create a Next that doesn't update the model but dispatches the supplied effects.

Link copied to clipboard
fun <M, F> next(model: M, vararg effects: F): Next<M, F>
fun <M, F> next(model: M, effects: Set<F> = emptySet()): Next<M, F>

Create a Next that updates the model and dispatches the optional effects.

Link copied to clipboard
fun <M, F> noChange(): Next<M, F>

Create an empty Next that doesn't update the model or dispatch effects.