Same as mapState() but creates computed setters as well so the state can be modified. Differently from mapState(), only state properties can be added.
mapState()
state
store to map from
object of state properties
Allows using state and getters from one store without using the composition API (setup()) by generating an object to be spread in the computed field of a component.
setup()
computed
array of state properties
Generated using TypeDoc
Same as
mapState()
but creates computed setters as well so the state can be modified. Differently frommapState()
, onlystate
properties can be added.