]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: some warnings
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 25 Jan 2023 13:26:57 +0000 (14:26 +0100)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 15 Feb 2023 09:52:57 +0000 (10:52 +0100)
packages/docs/core-concepts/index.md

index 1afda0c51496bf61e4b96e166716de95e40ee34f..d231044be5e035b88c23f52cf4ef2217940a90eb 100644 (file)
@@ -102,10 +102,9 @@ Note that `store` is an object wrapped with `reactive`, meaning there is no need
 const store = useCounterStore()
 // ❌ This won't work because it breaks reactivity
 // it's the same as destructuring from `props`
-const { name, doubleCount } = store
-
-name // will always be "Eduardo"
-doubleCount // will always be 0
+const { name, doubleCount } = store // [!code warning]
+name // will always be "Eduardo" // [!code warning]
+doubleCount // will always be 0 // [!code warning]
 
 setTimeout(() => {
   store.increment()