fix(scheduler): handle preFlush cb queued inside postFlush cb
fix #3806
This commit is contained in:
@@ -260,7 +260,11 @@ function flushJobs(seen?: CountMap) {
|
||||
currentFlushPromise = null
|
||||
// some postFlushCb queued jobs!
|
||||
// keep flushing until it drains.
|
||||
if (queue.length || pendingPostFlushCbs.length) {
|
||||
if (
|
||||
queue.length ||
|
||||
pendingPreFlushCbs.length ||
|
||||
pendingPostFlushCbs.length
|
||||
) {
|
||||
flushJobs(seen)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user