Skip to content

Commit 59393dd

Browse files
authored
fix(template-explorer): rename watch -> watchEffect (#780)
1 parent 1855a7f commit 59393dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/template-explorer/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as m from 'monaco-editor'
22
import { compile, CompilerError, CompilerOptions } from '@vue/compiler-dom'
33
import { compile as ssrCompile } from '@vue/compiler-ssr'
44
import { compilerOptions, initOptions, ssrMode } from './options'
5-
import { watch } from '@vue/runtime-dom'
5+
import { watchEffect } from '@vue/runtime-dom'
66
import { SourceMapConsumer } from 'source-map'
77

88
declare global {
@@ -221,7 +221,7 @@ window.init = () => {
221221
)
222222

223223
initOptions()
224-
watch(reCompile)
224+
watchEffect(reCompile)
225225
}
226226

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

0 commit comments

Comments
 (0)