1. Recently, I have been looking at the source code of vue2.0, and then I see that there is some doubt about watcher updating the component view.
2. The view was first updated in mountComponent through
new Watcher(vm, updateComponent, noop, {
before () {
if (vm._isMounted) {
callHook(vm, "beforeUpdate")
}
}
}, true /* isRenderWatcher */)
There is nothing wrong with updating the view with updateComponent in .
at the same time, at the time of initData, the values in data have been implemented obserable,. When the value triggers set to detect a change in value, the update method of the current watcher will be called. I don"t know how to update the view at this time. Solve