fix(watch): exhaust pre-flush watchers + avoid duplicate render by pre-flush watchers

close #1777
This commit is contained in:
Evan You
2020-08-04 13:20:09 -04:00
parent b5f91ff570
commit a0e34cee4a
3 changed files with 38 additions and 7 deletions

View File

@@ -1430,7 +1430,7 @@ function baseCreateRenderer(
instance.next = null
updateProps(instance, nextVNode.props, prevProps, optimized)
updateSlots(instance, nextVNode.children)
runPreflushJobs()
runPreflushJobs(instance.update)
}
const patchChildren: PatchChildrenFn = (