From c43a6e61a0952c629cfb062f67e8eb27a0f6f227 Mon Sep 17 00:00:00 2001 From: underfin <2218301630@qq.com> Date: Thu, 25 Jun 2020 23:40:49 +0800 Subject: [PATCH] perf(reactivity): should not track `__v_isRef` (#1392) --- packages/reactivity/src/baseHandlers.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/reactivity/src/baseHandlers.ts b/packages/reactivity/src/baseHandlers.ts index 3f875aba..82e6b98d 100644 --- a/packages/reactivity/src/baseHandlers.ts +++ b/packages/reactivity/src/baseHandlers.ts @@ -63,7 +63,11 @@ function createGetter(isReadonly = false, shallow = false) { const res = Reflect.get(target, key, receiver) - if ((isSymbol(key) && builtInSymbols.has(key)) || key === '__proto__') { + if ( + isSymbol(key) + ? builtInSymbols.has(key) + : key === `__proto__` || key === `__v_isRef` + ) { return res }