mirror of https://github.com/vuejs/core.git
fix(runtime-core): ensure only skip unflushed job (#3406)
This commit is contained in:
parent
49f4072c83
commit
bf34e33c90
|
@ -110,7 +110,7 @@ function queueFlush() {
|
||||||
|
|
||||||
export function invalidateJob(job: SchedulerJob) {
|
export function invalidateJob(job: SchedulerJob) {
|
||||||
const i = queue.indexOf(job)
|
const i = queue.indexOf(job)
|
||||||
if (i > -1) {
|
if (i > flushIndex) {
|
||||||
queue.splice(i, 1)
|
queue.splice(i, 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue