We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mapActions
1 parent ca965cd commit 9887d71Copy full SHA for 9887d71
docs/en/actions.md
@@ -107,7 +107,10 @@ export default {
107
// ...
108
methods: {
109
...mapActions([
110
- 'increment' // map this.increment() to this.$store.dispatch('increment')
+ 'increment', // map this.increment() to this.$store.dispatch('increment')
111
+
112
+ // mapActions also supports payloads:
113
+ 'incrementBy' // this.incrementBy(amount) maps to this.$store.dispatch('incrementBy', amount)
114
]),
115
...mapActions({
116
add: 'increment' // map this.add() to this.$store.dispatch('increment')
0 commit comments