fix(runtime-core/scheduler): allow component render functions to trigger itself

fix #1801
This commit is contained in:
Evan You
2020-08-13 17:27:14 -04:00
parent bc6f252c4a
commit 611437a3fe
4 changed files with 24 additions and 12 deletions

View File

@@ -261,7 +261,7 @@ function doWatch(
// important: mark the job as a watcher callback so that scheduler knows it
// it is allowed to self-trigger (#1727)
job.cb = !!cb
job.allowRecurse = !!cb
let scheduler: (job: () => any) => void
if (flush === 'sync') {