perf(reactivity): should not track __v_isRef (#1392)

This commit is contained in:
underfin
2020-06-25 23:40:49 +08:00
committed by GitHub
parent a60f3b1430
commit c43a6e61a0

View File

@@ -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
}