Package-level declarations

Predictable state container based on Redux library.

Types

Link copied to clipboard
typealias ActionCreator<A, S> = (Dispatch<A>, GetState<S>) -> Unit
Link copied to clipboard
typealias Dispatch<A> = (A) -> Unit
Link copied to clipboard
typealias GetState<S> = () -> S
Link copied to clipboard
interface RAction
Link copied to clipboard
open class TypedReduxStore<S : Any, A : RAction>(val store: <Error class: unknown class><S, A>)

A class implementing redux pattern backed by the Redux Kotlin library.

Functions

Link copied to clipboard
inline fun <S : Any, A : RAction> createTypedReduxStore(crossinline reducer: <Error class: unknown class><S, A>, initialState: S, vararg middlewares: <Error class: unknown class><S>): TypedReduxStore<S, A>

An inline helper function for creating Redux store.