瀏覽代碼

give the component update computation a name

Evan You 9 年之前
父節點
當前提交
9b384bd4be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/instance/lifecycle.js

+ 1 - 1
src/core/instance/lifecycle.js

@@ -61,7 +61,7 @@ export function lifecycleMixin (Vue: Class<Component>) {
       }
     }
     callHook(vm, 'beforeMount')
-    vm._watcher = new Watcher(vm, () => {
+    vm._watcher = new Watcher(vm, function updateComponent () {
       vm._update(vm._render(), hydrating)
     }, noop)
     hydrating = false