From: Phan Chinh Quoc <61355840+chinhquoc01@users.noreply.github.com> Date: Wed, 5 Apr 2023 10:09:22 +0000 (+0700) Subject: docs: update actions.md (#2120) X-Git-Tag: @pinia/nuxt@0.4.8~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a926ff8d39b794a538df8dd450835869ec3f0b47;p=thirdparty%2Fvuejs%2Fpinia.git docs: update actions.md (#2120) --- diff --git a/packages/docs/core-concepts/actions.md b/packages/docs/core-concepts/actions.md index 5550c69c..6fd99deb 100644 --- a/packages/docs/core-concepts/actions.md +++ b/packages/docs/core-concepts/actions.md @@ -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' }), },