Skip to content

Commit

Permalink
fix(template-explorer): rename watch -> watchEffect (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangying000 authored Feb 26, 2020
1 parent 1855a7f commit 59393dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/template-explorer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -221,7 +221,7 @@ window.init = () => {
)

initOptions()
watch(reCompile)
watchEffect(reCompile)
}

function debounce<T extends (...args: any[]) => any>(
Expand Down

0 comments on commit 59393dd

Please sign in to comment.