fix(runtime-core/scheduler): invalidate job (#717)

This commit is contained in:
Yang Mingshan
2020-02-11 20:30:25 +08:00
committed by GitHub
parent f4c54a888b
commit fe9da2d0e4
2 changed files with 11 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ function flushJobs(seen?: CountMap) {
if (__DEV__) {
seen = seen || new Map()
}
while ((job = queue.shift())) {
while ((job = queue.shift()) !== undefined) {
if (job === null) {
continue
}