|
|
@@ -193,7 +193,10 @@ export function mountComponent (
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- vm._watcher = new Watcher(vm, updateComponent, noop)
|
|
|
+ // we set this to vm._watcher inside the wathcer's constructor
|
|
|
+ // since the watcher's initial patch may call $forceUpdate (e.g. inside child
|
|
|
+ // component's mounted hook), which relies on vm._watcher being already defined
|
|
|
+ new Watcher(vm, updateComponent, noop, null, true /* isRenderWatcher */)
|
|
|
hydrating = false
|
|
|
|
|
|
// manually mounted instance, call mounted on self
|