We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 730e39e commit c27dfe1Copy full SHA for c27dfe1
packages/runtime-core/src/scheduler.ts
@@ -26,7 +26,7 @@ export function nextTick(fn?: () => void): Promise<void> {
26
}
27
28
export function queueJob(job: Job) {
29
- if (!queue.includes(job, flushIndex)) {
+ if (!queue.includes(job, flushIndex + 1)) {
30
queue.push(job)
31
queueFlush()
32
@@ -43,7 +43,7 @@ export function queuePostFlushCb(cb: Function | Function[]) {
43
if (!isArray(cb)) {
44
if (
45
!pendingPostFlushCbs ||
46
- !pendingPostFlushCbs.includes(cb, pendingPostFlushIndex)
+ !pendingPostFlushCbs.includes(cb, pendingPostFlushIndex + 1)
47
) {
48
postFlushCbs.push(cb)
49
0 commit comments