Skip to content

Commit 09cf66c

Browse files
committed
simplify
1 parent 7e337bc commit 09cf66c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,10 +820,8 @@ function process_effects(effect, collected_effects, boundary) {
820820
var sibling = current_effect.next;
821821

822822
if (!is_skippable_branch && (flags & INERT) === 0) {
823-
// Inside a boundary, defer everything except block/branch effects
824-
var defer = boundary !== undefined && !is_branch && (flags & BLOCK_EFFECT) === 0;
825-
826-
if (defer) {
823+
if (boundary !== undefined && (flags & (BLOCK_EFFECT | BRANCH_EFFECT)) === 0) {
824+
// Inside a boundary, defer everything except block/branch effects
827825
add_boundary_effect(/** @type {Effect} */ (boundary), current_effect);
828826
} else if ((flags & BOUNDARY_EFFECT) !== 0) {
829827
process_effects(current_effect, collected_effects, current_effect);

0 commit comments

Comments
 (0)