no longer need to wrap in arrow function

pull/18180/head
Rich Harris 5 days ago
parent a6d9fcf4b8
commit a5437b24f7

@ -83,7 +83,7 @@ export function flatten(blockers, sync, async, fn) {
Promise.all(async.map((expression) => async_derived(expression)))
.then((result) => finish([...sync.map(d), ...result]))
.catch((error) => invoke_error_boundary(error, parent))
.finally(() => decrement_pending());
.finally(decrement_pending);
}
if (blocker_promise) {
@ -325,7 +325,7 @@ export function run(thunks) {
// wait one more tick, so that template effects are
// guaranteed to run before `$effect(...)`
.then(() => Promise.resolve())
.finally(() => decrement_pending());
.finally(decrement_pending);
return blockers;
}

Loading…
Cancel
Save