Skip to content

Commit bf34e33

Browse files
authored
fix(runtime-core): ensure only skip unflushed job (#3406)
1 parent 49f4072 commit bf34e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/scheduler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function queueFlush() {
110110

111111
export function invalidateJob(job: SchedulerJob) {
112112
const i = queue.indexOf(job)
113-
if (i > -1) {
113+
if (i > flushIndex) {
114114
queue.splice(i, 1)
115115
}
116116
}

0 commit comments

Comments
 (0)