Skip to content

Commit

Permalink
docs: update actions.md (#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinhquoc01 committed Apr 5, 2023
1 parent 66d3a5e commit a926ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/core-concepts/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default {
methods: {
// gives access to this.increment() inside the component
// same as calling from store.increment()
...mapActions(useCounterStore, ['increment'])
...mapActions(useCounterStore, ['increment']),
// same as above but registers it as this.myOwnName()
...mapActions(useCounterStore, { myOwnName: 'increment' }),
},
Expand Down

0 comments on commit a926ff8

Please sign in to comment.