fix: adjust heuristics for effect_update_depth_exceeded (#11557)

* fix: adjust heuristics for effect_update_depth_exceeded

* fix: adjust heuristics for effect_update_depth_exceeded
pull/11554/head
Dominic Gannaway 8 months ago committed by GitHub
parent 597715ff98
commit 43ad72b1ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: adjust heuristics for effect_update_depth_exceeded

@ -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];
@ -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 = [];

Loading…
Cancel
Save