]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: added 'export' keyword for useCounterStore (#1555)
authorJerald Vinfrank <46400789+JeraldVin@users.noreply.github.com>
Tue, 16 Aug 2022 18:13:16 +0000 (23:43 +0530)
committerGitHub <noreply@github.com>
Tue, 16 Aug 2022 18:13:16 +0000 (20:13 +0200)
packages/docs/core-concepts/getters.md

index 3c47995054a2f26fb75777ec7410ee3e44f4f3ec..6077f0f0ded18215a1a37daab2a628bc53f06f0b 100644 (file)
@@ -179,7 +179,7 @@ For the following examples, you can assume the following store was created:
 
 import { defineStore } from 'pinia'
 
-const useCounterStore = defineStore('counter', {
+export const useCounterStore = defineStore('counter', {
   state: () => ({
     count: 0,
   }),