Skip to content

Allow function for mapMutations/mapActions like mapState #750

Closed
@li2568261

Description

@li2568261

What problem does this feature solve?

in function normalizeNamespace

make payload to string is so pain;

can we add the typeOf(val) to judege this type?

my English is poor, please forgive me

What does the proposed API look like?

I want to use mapMutations set payload mutations,like

Vuex.mapMutations({
increame: {
type: 'increame',
addNum: 10
}
})

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions