Skip to content

Commit

Permalink
fix(runtime-core): ensure only skip unflushed job (#3406)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Mar 25, 2021
1 parent 49f4072 commit bf34e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function queueFlush() {

export function invalidateJob(job: SchedulerJob) {
const i = queue.indexOf(job)
if (i > -1) {
if (i > flushIndex) {
queue.splice(i, 1)
}
}
Expand Down

0 comments on commit bf34e33

Please sign in to comment.