Skip to content

Commit 1ff0637

Browse files
committed
chore: type fix
1 parent 03a7a73 commit 1ff0637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/apiWatch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function doWatch(
309309

310310
let scheduler: ReactiveEffectOptions['scheduler']
311311
if (flush === 'sync') {
312-
scheduler = job
312+
scheduler = job as any // the scheduler function gets called directly
313313
} else if (flush === 'post') {
314314
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense)
315315
} else {

0 commit comments

Comments
 (0)