Skip to content

Commit c43a6e6

Browse files
authored
perf(reactivity): should not track __v_isRef (#1392)
1 parent a60f3b1 commit c43a6e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/reactivity/src/baseHandlers.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ function createGetter(isReadonly = false, shallow = false) {
6363

6464
const res = Reflect.get(target, key, receiver)
6565

66-
if ((isSymbol(key) && builtInSymbols.has(key)) || key === '__proto__') {
66+
if (
67+
isSymbol(key)
68+
? builtInSymbols.has(key)
69+
: key === `__proto__` || key === `__v_isRef`
70+
) {
6771
return res
6872
}
6973

0 commit comments

Comments
 (0)