Package io.kvision.redux

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
typealias ReducerFun<S, A> = (S, A) -> S
Link copied to clipboard
class ReduxStore<S : Any, A : RAction>(    reducer: ReducerFun<S, A>,     initialState: S,     middlewares: <Error class: unknown class><S>)

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

Functions

Link copied to clipboard
fun <S : Any, A : RAction> createReduxStore(    reducer: ReducerFun<S, A>,     initialState: S,     vararg middlewares: <Error class: unknown class><S>): ReduxStore<S, A>

An inline helper function for creating Redux store.