We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98fb01c commit a6e7498Copy full SHA for a6e7498
src/v3/reactivity/ref.ts
@@ -119,7 +119,16 @@ export function proxyWithRefUnwrap(
119
Object.defineProperty(target, key, {
120
enumerable: true,
121
configurable: true,
122
- get: () => unref(source[key]),
+ get: () => {
123
+ const val = source[key]
124
+ if (isRef(val)) {
125
+ return val.value
126
+ } else {
127
+ const ob = val && val.__ob__
128
+ if (ob) ob.dep.depend()
129
+ return val
130
+ }
131
+ },
132
set: value => {
133
const oldValue = source[key]
134
if (isRef(oldValue) && !isRef(value)) {
0 commit comments