Package-level declarations
Types
Link copied to clipboard
interface ClosureBuilderScope
The scope for building a DispatchClosure.
Link copied to clipboard
The scope for building a middlewares pipeline.
Link copied to clipboard
This is an equivalent of Redux store. However, there are a few differences:
Link copied to clipboard
Link copied to clipboard
The scope for building a Store.
Functions
Link copied to clipboard
Provides a DSL for building a Store.
Link copied to clipboard
fun <State> previewStore(initialState: State, initialClosure: DispatchClosure = EmptyDispatchClosure, reducer: Reducer<State> = { state, _ -> state }): Store<State>
Creates a simplified Store implementation for UI previews.
Link copied to clipboard
fun <State> Store(initialState: State, reducer: Reducer<State>, middlewares: List<Middleware<State>>, initialClosure: DispatchClosure): Store<State>
Creates a Store. This is an alternative to buildStore, which is a recommended way of creating a Store.