fix(watch): avoid traversing objects that are marked non-reactive (#12806)

This commit is contained in:
不见月 2022-10-12 21:25:26 +08:00 committed by Evan You
parent 8e262618cd
commit 5960f05c69

View File

@ -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
) {