Skip to content

Commit

Permalink
fix(watch): avoid traversing objects that are marked non-reactive (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
nooooooom authored and yyx990803 committed Oct 12, 2022
1 parent 8e26261 commit 5960f05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/observer/traverse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function _traverse(val: any, seen: SimpleSet) {
const isA = isArray(val)
if (
(!isA && !isObject(val)) ||
val.__v_skip /* ReactiveFlags.SKIP */ ||
Object.isFrozen(val) ||
val instanceof VNode
) {
Expand Down

0 comments on commit 5960f05

Please sign in to comment.