]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: missing import (#2498)
authorJust Kiet <kiet.dinh.t@gmail.com>
Thu, 16 Nov 2023 20:51:25 +0000 (14:51 -0600)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 17 Nov 2023 14:39:00 +0000 (15:39 +0100)
packages/docs/core-concepts/index.md

index 81fdb86f83154ab23060e66df78663baae35e272..64396e8a00cdae339fd245ae3788cddeb698cbd7 100644 (file)
@@ -124,6 +124,7 @@ Note that `store` is an object wrapped with `reactive`, meaning there is no need
 
 ```vue
 <script setup>
+import { useCounterStore } from '@/stores/counter'
 const store = useCounterStore()
 // ❌ This won't work because it breaks reactivity
 // it's the same as destructuring from `props`
@@ -147,6 +148,7 @@ In order to extract properties from the store while keeping its reactivity, you
 
 ```vue
 <script setup>
+import { useCounterStore } from '@/stores/counter'
 import { storeToRefs } from 'pinia'
 
 const store = useCounterStore()