From dbdec43f286356a1f927063ff269870debec51ff Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 25 Jan 2023 14:26:57 +0100 Subject: [PATCH] docs: some warnings --- packages/docs/core-concepts/index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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() -- 2.47.2