Skip to content

Commit 2d982b9

Browse files
committed
fix: adjust heuristics for effect_update_depth_exceeded
1 parent 597715f commit 2d982b9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/famous-kiwis-thank.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: adjust heuristics for effect_update_depth_exceeded

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,7 @@ function process_effects(effect, filter_flags, shallow, collected_effects) {
677677
* @returns {void}
678678
*/
679679
function flush_nested_effects(effect, filter_flags, shallow = false) {
680+
infinite_loop_guard();
680681
/** @type {import('#client').Effect[]} */
681682
var collected_effects = [];
682683

0 commit comments

Comments
 (0)