kvision / pl.treksoft.kvision.redux / ReduxStore / <init>

<init>

ReduxStore(reducer: <ERROR CLASS><S, A>, initialState: S, stateSerializer: KSerializer<S>, vararg middlewares: dynamic)

Creates a Redux store with given reducer function and initial state.

Parameters

S - redux state type (@Serializable)

A - redux action type

reducer - a reducer function

state - an initial state

stateSerializer - a serializer for the state type

middlewares - a list of optional Redux JS middlewares

Constructor
Creates a Redux store with given reducer function and initial state.