Package-level declarations

Types

Link copied to clipboard
@ObjCName(name = "ReduKtAction", exact = true)
interface Action

Marker interface for every Redux action.

Link copied to clipboard
typealias DispatchFunction = (action: Action) -> Unit

Type alias for Redux dispatch function. In contrast to Redux dispatch, it returns no value.

Link copied to clipboard
interface DispatchScope<out State>

The scope for accessing current state of the Redux store and dispatching actions. Beside standard Redux operations, it introduces a DispatchClosure mechanism.

Link copied to clipboard
typealias Reducer<T> = (T, Action) -> T

Type alias for a pure function that accepts the current state of type T and an action, decides how to update the state if necessary, and returns the new state. This is equivalent to Redux reducer.

Functions

Link copied to clipboard
fun <T> combineReducers(vararg reducers: Reducer<T>): Reducer<T>

Combines reducers of the same type T into a single reducer. The first child reducer is invoked with the same action and state as the parent reducer. Every subsequent child is invoked with state returned by its predecessor.

Link copied to clipboard