Skip to content

Commit 065a326

Browse files
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 <[email protected]>
1 parent 4e6b9b6 commit 065a326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/core-concepts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ import { computed } from 'vue'
136136
137137
const store = useCounterStore()
138138
// ❌ This won't work because it breaks reactivity
139-
// it's the same as destructuring from `props`
139+
// same as reactive: https://vuejs.org/guide/essentials/reactivity-fundamentals.html#limitations-of-reactive
140140
const { name, doubleCount } = store // [!code warning]
141141
name // will always be "Eduardo" // [!code warning]
142142
doubleCount // will always be 0 // [!code warning]

0 commit comments

Comments
 (0)