Predictable state container based on Redux library.
class ReduxStore<S : Any, A>
A class implementing redux pattern backed by the original Redux JS library. It requires @Serializable state. |
|
class StateBinding<S : Any, A, 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) -> <ERROR CLASS> |
|
typealias GetState<S> = () -> S |
fun <S : Any, A> createReduxStore(reducer: <ERROR CLASS><S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A>
An inline helper function for creating Redux store. |