fix: more try finally

fix-interleaving
paoloricciuti 5 days ago
parent 90660afc76
commit 34e0a84be3

@ -431,12 +431,15 @@ export class Boundary {
if (this.#offscreen_fragment) {
var pop_renderer = push_renderer(this.#effect.r, this.#effect.pr);
try {
insert_before(this.#anchor, this.#offscreen_fragment);
this.#offscreen_fragment = null;
} finally {
pop_renderer?.();
}
}
}
}
/**
* Update the source that powers `$effect.pending()` inside this boundary,

@ -523,6 +523,7 @@ export function destroy_effect(effect, remove_dom = true) {
var pop_renderer = push_renderer(effect.r, effect.pr);
try {
if (
(remove_dom || (effect.f & HEAD_EFFECT) !== 0) &&
effect.nodes !== null &&
@ -574,8 +575,9 @@ export function destroy_effect(effect, remove_dom = true) {
effect.r =
effect.pr =
null;
} finally {
pop_renderer?.();
}
}
/**

Loading…
Cancel
Save