From: djy0 Date: Wed, 26 Feb 2020 15:13:07 +0000 (+0800) Subject: fix(template-explorer): rename watch -> watchEffect (#780) X-Git-Tag: v3.0.0-alpha.7~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59393dd75766720330cb69e22086c97a392dbbe4;p=thirdparty%2Fvuejs%2Fcore.git fix(template-explorer): rename watch -> watchEffect (#780) --- diff --git a/packages/template-explorer/src/index.ts b/packages/template-explorer/src/index.ts index cf97e8e69f..af90ce6c4b 100644 --- a/packages/template-explorer/src/index.ts +++ b/packages/template-explorer/src/index.ts @@ -2,7 +2,7 @@ import * as m from 'monaco-editor' import { compile, CompilerError, CompilerOptions } from '@vue/compiler-dom' import { compile as ssrCompile } from '@vue/compiler-ssr' import { compilerOptions, initOptions, ssrMode } from './options' -import { watch } from '@vue/runtime-dom' +import { watchEffect } from '@vue/runtime-dom' import { SourceMapConsumer } from 'source-map' declare global { @@ -221,7 +221,7 @@ window.init = () => { ) initOptions() - watch(reCompile) + watchEffect(reCompile) } function debounce any>(