From: Eduardo San Martin Morote Date: Wed, 25 Jan 2023 13:26:57 +0000 (+0100) Subject: docs: some warnings X-Git-Tag: @pinia/nuxt@0.4.7~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbdec43f286356a1f927063ff269870debec51ff;p=thirdparty%2Fvuejs%2Fpinia.git docs: some warnings --- diff --git a/packages/docs/core-concepts/index.md b/packages/docs/core-concepts/index.md index 1afda0c5..d231044b 100644 --- a/packages/docs/core-concepts/index.md +++ b/packages/docs/core-concepts/index.md @@ -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()