We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27dfe1 commit 4ef5c8dCopy full SHA for 4ef5c8d
packages/runtime-core/src/scheduler.ts
@@ -13,7 +13,7 @@ let currentFlushPromise: Promise<void> | null = null
13
14
let isFlushing = false
15
let isFlushPending = false
16
-let flushIndex = 0
+let flushIndex = -1
17
let pendingPostFlushCbs: Function[] | null = null
18
let pendingPostFlushIndex = 0
19
@@ -114,7 +114,7 @@ function flushJobs(seen?: CountMap) {
114
callWithErrorHandling(job, null, ErrorCodes.SCHEDULER)
115
}
116
117
- flushIndex = 0
+ flushIndex = -1
118
queue.length = 0
119
120
flushPostFlushCbs(seen)
0 commit comments