]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: correct options API action access (#445)
authoremesenge <emesenge@gmail.com>
Mon, 19 Apr 2021 10:20:11 +0000 (12:20 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 10:20:11 +0000 (12:20 +0200)
docs/core-concepts/actions.md

index 131af0df0043b5010831f7d12a5b2eb2160cd65d..f33679b55e7ccd44fe8b9804c19f24709f92da44 100644 (file)
@@ -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'])