Store

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.

Use cases for this function:

  • A custom builder

  • A custom Store implementation that delegates to this one