From a5d81614f91109702b1e96b0bd7bdb17875a1bf5 Mon Sep 17 00:00:00 2001 From: emesenge Date: Mon, 19 Apr 2021 12:20:11 +0200 Subject: [PATCH] docs: correct options API action access (#445) --- docs/core-concepts/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- 2.47.2