From: Michael Cozzolino Date: Mon, 28 Apr 2025 19:37:21 +0000 (+0200) Subject: docs: Props destructuring suggestion is not true anymore with the release of vue... X-Git-Tag: @pinia/nuxt@0.11.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065a3268cbe4f5e66134d763c6dab01b50e4eb8c;p=thirdparty%2Fvuejs%2Fpinia.git docs: Props destructuring suggestion is not true anymore with the release of vue 3.5 (#2979) * 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 --- diff --git a/packages/docs/core-concepts/index.md b/packages/docs/core-concepts/index.md index 2cc3474b..49c2350c 100644 --- a/packages/docs/core-concepts/index.md +++ b/packages/docs/core-concepts/index.md @@ -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]