]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: Props destructuring suggestion is not true anymore with the release of vue...
authorMichael Cozzolino <michaelcozzolino@outlook.it>
Mon, 28 Apr 2025 19:37:21 +0000 (21:37 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Apr 2025 19:37:21 +0000 (21:37 +0200)
* fix(docs): Props destructuring suggestion is not true anymore with the release of vue 3.5

* Update packages/docs/core-concepts/index.md

---------

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
packages/docs/core-concepts/index.md

index 2cc3474b7733c97a7d56f70b64c0c6fe4bf3e0d1..49c2350c1962ae66668fa38f8709f84593296b3e 100644 (file)
@@ -136,7 +136,7 @@ import { computed } from 'vue'
 
 const store = useCounterStore()
 // ❌ This won't work because it breaks reactivity
-// it's the same as destructuring from `props`
+// same as reactive: https://vuejs.org/guide/essentials/reactivity-fundamentals.html#limitations-of-reactive
 const { name, doubleCount } = store // [!code warning]
 name // will always be "Eduardo" // [!code warning]
 doubleCount // will always be 0 // [!code warning]