Skip to content

Commit

Permalink
perf(reactivity): should not track __v_isRef (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin authored Jun 25, 2020
1 parent a60f3b1 commit c43a6e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c43a6e6

Please sign in to comment.