Skip to content

Commit 2160e89

Browse files
authored
fix(watch): avoid traversing objects that are marked non-reactive (#12806)
1 parent c207dfc commit 2160e89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/observer/traverse.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function _traverse(val: any, seen: SimpleSet) {
2121
const isA = isArray(val)
2222
if (
2323
(!isA && !isObject(val)) ||
24+
val.__v_skip /* ReactiveFlags.SKIP */ ||
2425
Object.isFrozen(val) ||
2526
val instanceof VNode
2627
) {

0 commit comments

Comments
 (0)