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 25e075d commit 94b2ddcCopy full SHA for 94b2ddc
packages/runtime-core/src/scheduler.ts
@@ -114,12 +114,18 @@ export function queueJob(job: SchedulerJob): void {
114
}
115
116
117
+const doFlushJobs = () => {
118
+ try {
119
+ flushJobs()
120
+ } catch (e) {
121
+ currentFlushPromise = null
122
+ throw e
123
+ }
124
+}
125
+
126
function queueFlush() {
127
if (!currentFlushPromise) {
- currentFlushPromise = resolvedPromise.then(flushJobs).catch(e => {
- currentFlushPromise = null
- throw e
- })
128
+ currentFlushPromise = resolvedPromise.then(doFlushJobs)
129
130
131
0 commit comments