Skip to content

Commit

Permalink
fix: adjust heuristics for effect_update_depth_exceeded (#11557)
Browse files Browse the repository at this point in the history
* fix: adjust heuristics for effect_update_depth_exceeded

* fix: adjust heuristics for effect_update_depth_exceeded
  • Loading branch information
trueadm committed May 11, 2024
1 parent 597715f commit 43ad72b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/famous-kiwis-thank.md
@@ -0,0 +1,5 @@
---
"svelte": patch
---

fix: adjust heuristics for effect_update_depth_exceeded
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/runtime.js
Expand Up @@ -529,7 +529,6 @@ function flush_queued_effects(effects) {
var length = effects.length;
if (length === 0) return;

infinite_loop_guard();
for (var i = 0; i < length; i++) {
var effect = effects[i];

Expand Down Expand Up @@ -677,6 +676,7 @@ function process_effects(effect, filter_flags, shallow, collected_effects) {
* @returns {void}
*/
function flush_nested_effects(effect, filter_flags, shallow = false) {
infinite_loop_guard();
/** @type {import('#client').Effect[]} */
var collected_effects = [];

Expand Down

0 comments on commit 43ad72b

Please sign in to comment.