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> : Widget
A class which binds the redux store with the given container. |
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. |