Predictable state container based on Redux library.
(js)
ActionCreator |
typealias ActionCreator<A, S> = (Dispatch<A>, GetState<S>) -> Unit |
(js)
Dispatch |
typealias Dispatch<A> = (A) -> Unit |
(js)
GetState |
typealias GetState<S> = () -> S |
(js)
RAction |
interface RAction |
(js)
ReducerFun |
typealias ReducerFun<S, A> = (S, A) -> S |
(js)
ReduxStore |
A class implementing redux pattern backed by the Redux Kotlin library. class ReduxStore<S : Any, A : RAction> : ObservableState<S> |
(js)
createReduxStore |
An inline helper function for creating Redux store. fun <S : Any, A : RAction> createReduxStore(reducer: ReducerFun<S, A>, initialState: S, vararg middlewares: Middleware<S>): ReduxStore<S, A> fun <S : Any, A : RAction> createReduxStore(reducer: Reducer<S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A> |