Thunk

interface Thunk<State> : ThunkMarker<State>

It is an equivalent of Redux thunk. In ReduKt it is an Action that contains some logic in execute method. It can interact with a store through DispatchScope.

Important: thunkMiddleware must be added to a store, because it is responsible for calling execute

Functions

Link copied to clipboard
abstract fun DispatchScope<State>.execute()

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
operator fun Action.plus(other: Action): DispatchList

Creates a DispatchList with this action and other. This operator automatically flattens DispatchList, so a chain of calls results in a single and flat DispatchList.