Browse Source

give the component update computation a name

Evan You 9 years ago
parent
commit
9b384bd4be
1 changed files with 1 additions and 1 deletions
  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')
     callHook(vm, 'beforeMount')
-    vm._watcher = new Watcher(vm, () => {
+    vm._watcher = new Watcher(vm, function updateComponent () {
       vm._update(vm._render(), hydrating)
       vm._update(vm._render(), hydrating)
     }, noop)
     }, noop)
     hydrating = false
     hydrating = false