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 4b0ec07 commit 9b8439aCopy full SHA for 9b8439a
packages/svelte/src/internal/client/reactivity/effects.js
@@ -433,7 +433,11 @@ export function destroy_block_effect_children(signal) {
433
export function destroy_effect(effect, remove_dom = true) {
434
var removed = false;
435
436
- if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes_start !== null) {
+ if (
437
+ (remove_dom || (effect.f & HEAD_EFFECT) !== 0) &&
438
+ effect.nodes_start !== null &&
439
+ effect.nodes_end !== null
440
+ ) {
441
remove_effect_dom(effect.nodes_start, /** @type {TemplateNode} */ (effect.nodes_end));
442
removed = true;
443
}
0 commit comments