ソースを参照

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