We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92d177b commit 5f6b534Copy full SHA for 5f6b534
docs/en/mutations.md
@@ -146,7 +146,10 @@ export default {
146
// ...
147
methods: {
148
...mapMutations([
149
- 'increment' // map this.increment() to this.$store.commit('increment')
+ 'increment', // map this.increment() to this.$store.commit('increment')
150
+
151
+ // mapMutations also supports payloads:
152
+ 'incrementBy' // this.incrementBy(amount) maps to this.$store.commit('incrementBy', amount)
153
]),
154
...mapMutations({
155
add: 'increment' // map this.add() to this.$store.commit('increment')
0 commit comments