})
})
-test.todo('should be able to trigger with triggerRef', () => {
+test('should be able to trigger with triggerRef', () => {
const r = shallowRef({ a: 1 })
const ror = readonly(r)
let dummy
}
}
+ const wasRef = isRef(target)
const res = Reflect.get(
target,
key,
// if this is a proxy wrapping a ref, return methods using the raw ref
// as receiver so that we don't have to call `toRaw` on the ref in all
// its class methods
- isRef(target) ? target : receiver,
+ wasRef ? target : receiver,
)
+ if (wasRef && key !== 'value') {
+ return res
+ }
+
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
return res
}
_subs: Link | undefined = undefined
subsTail: Link | undefined = undefined
- /**
- * @internal
- */
- readonly __v_skip = true
- // TODO isolatedDeclarations ReactiveFlags.SKIP
-
constructor(
private map: KeyToDepMap,
private key: unknown,