From 834929bd98225a76c237978de93af8be6f0c4ed9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 15 Sep 2017 10:16:39 -0400 Subject: [PATCH] fix(core): avoid observing VNodes fix #6610 --- src/core/observer/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/observer/index.js b/src/core/observer/index.js index 7fc8a633cda..11de2d89f79 100644 --- a/src/core/observer/index.js +++ b/src/core/observer/index.js @@ -1,6 +1,7 @@ /* @flow */ import Dep from './dep' +import VNode from '../vdom/vnode' import { arrayMethods } from './array' import { def, @@ -104,7 +105,7 @@ function copyAugment (target: Object, src: Object, keys: Array) { * or the existing observer if the value already has one. */ export function observe (value: any, asRootData: ?boolean): Observer | void { - if (!isObject(value)) { + if (!isObject(value) || value instanceof VNode) { return } let ob: Observer | void