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: TypedStore<S, A>) : ObservableState<S>

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: TypedReducer<S, A>, initialState: S, vararg middlewares: Middleware<S>): TypedReduxStore<S, A>

An inline helper function for creating Redux store.