Package-level declarations

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

A class implementing redux pattern backed by the original Redux JS library.

Functions

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

An inline helper function for creating Redux store.