Predictable state container based on Redux library.
interface RAction |
|
class ReduxStore<S : Any, A : RAction>
A class implementing redux pattern backed by the Redux Kotlin library. |
|
class StateBinding<S : Any, A : RAction, CONT : Container, CONTENT> : Widget
A class which binds the redux store with the given container. |
|
class Updateable<S : Any, CONTENT>
A helper class for updateable redux content. |
typealias ActionCreator<A, S> = (Dispatch<A>, GetState<S>) -> Unit |
|
typealias Dispatch<A> = (A) -> Unit |
|
typealias GetState<S> = () -> S |
|
typealias ReducerFun<S, A> = (S, A) -> S |
fun <S : Any, A : RAction> createReduxStore(reducer: ReducerFun<S, A>, initialState: S, vararg middlewares: <ERROR CLASS><S>): ReduxStore<S, A> fun <S : Any, A : RAction> createReduxStore(reducer: <ERROR CLASS><S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A>
An inline helper function for creating Redux store. |