Skip to content

Commit 9d61858

Browse files
committed
fix: improve internal mechanism for handling process_effects
1 parent 4cadd07 commit 9d61858

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/cyan-colts-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: improve internal mechanism for handling process_effects

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,9 @@ function process_effects(effect, filter_flags, shallow, collected_effects) {
654654

655655
if (effects.length > 0) {
656656
if ((filter_flags & EFFECT) !== 0) {
657-
collected_effects.push(...effects);
657+
for (let i = 0; i < effects.length; i++) {
658+
collected_effects.push(effects[i]);
659+
}
658660
}
659661

660662
if (!shallow) {

0 commit comments

Comments
 (0)