chore: tidy up (#17863)

small tweaks, will self-merge
pull/17864/head
Rich Harris 6 months ago committed by GitHub
parent 61a443f1fa
commit 9066b75c01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -225,7 +225,6 @@ export class Boundary {
fragment.append(anchor);
this.#main_effect = this.#run(() => {
Batch.ensure();
return branch(() => this.#children(anchor));
});
@ -320,6 +319,7 @@ export class Boundary {
set_component_context(this.#effect.ctx);
try {
Batch.ensure();
return fn();
} catch (e) {
handle_error(e);
@ -445,9 +445,6 @@ export class Boundary {
}
this.#run(() => {
// If the failure happened while flushing effects, current_batch can be null
Batch.ensure();
this.#render();
});
};
@ -464,8 +461,6 @@ export class Boundary {
if (failed) {
this.#failed_effect = this.#run(() => {
Batch.ensure();
try {
return branch(() => {
// errors in `failed` snippets cause the boundary to error again

@ -43,7 +43,6 @@ export function flatten(blockers, sync, async, fn) {
return;
}
var batch = current_batch;
var parent = /** @type {Effect} */ (active_effect);
var restore = capture();

@ -14,7 +14,6 @@ import {
MAYBE_DIRTY,
DERIVED,
EAGER_EFFECT,
HEAD_EFFECT,
ERROR_VALUE,
MANAGED_EFFECT,
REACTION_RAN

Loading…
Cancel
Save