Skip to content

Commit 4ec0cf0

Browse files
authored
here should have property .value (vuejs#336)
1 parent 3173219 commit 4ec0cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/refs-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Type of stateAsRefs:
106106

107107
// The ref and the original property is "linked"
108108
state.foo++
109-
console.log(stateAsRefs.foo) // 2
109+
console.log(stateAsRefs.foo.value) // 2
110110

111111
stateAsRefs.foo.value++
112112
console.log(state.foo) // 3

0 commit comments

Comments
 (0)