Skip to content

Commit 696de02

Browse files
committed
fix: ensure svelte boundaries are always appended to parent effects
1 parent ab3290f commit 696de02

File tree

1 file changed

+4
-1
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+4
-1
lines changed

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @import { Effect, TemplateNode, } from '#client' */
22

3-
import { BOUNDARY_EFFECT, EFFECT_TRANSPARENT } from '../../constants.js';
3+
import { BOUNDARY_EFFECT, EFFECT_HAS_DERIVED, EFFECT_TRANSPARENT } from '../../constants.js';
44
import { block, branch, destroy_effect, pause_effect } from '../../reactivity/effects.js';
55
import {
66
active_effect,
@@ -117,6 +117,9 @@ export function boundary(node, props, boundary_fn) {
117117
is_creating_fallback = false;
118118
});
119119
});
120+
// Since the boundary is lazy, so we need to ensure the parent
121+
// knows that is will have children in the future
122+
boundary.f |= EFFECT_HAS_DERIVED;
120123
}
121124
};
122125

0 commit comments

Comments
 (0)