Skip to main content

set

set(fn, storeId, type)

set(storeId, fn, type)

Sets store state. The only required parameter is the mutation function.

ParameterDescription
storeIdThe name of the store to use.
fnThe mutation function to execute with the current state.
typeA string representing the action type. Used with devTools.
Live Editor
Result
Loading...