From: emesenge Date: Mon, 19 Apr 2021 10:20:11 +0000 (+0200) Subject: docs: correct options API action access (#445) X-Git-Tag: v2.0.0-alpha.14~50 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a5d81614f91109702b1e96b0bd7bdb17875a1bf5;p=thirdparty%2Fvuejs%2Fpinia.git docs: correct options API action access (#445) --- diff --git a/docs/core-concepts/actions.md b/docs/core-concepts/actions.md index 131af0df..f33679b5 100644 --- a/docs/core-concepts/actions.md +++ b/docs/core-concepts/actions.md @@ -82,7 +82,7 @@ If you are not using the composition API, and you are using `computed`, `methods import { mapActions } from 'pinia' export default { - computed: { + methods: { // gives access to this.increment() inside the component // same as calling from store.increment() ...mapActions(useStore, ['increment'])