fix: adjust heuristics for effect_update_depth_exceeded (#11558)

* fix: adjust heuristics for effect_update_depth_exceeded

* fix: adjust heuristics for effect_update_depth_exceeded

* fix: further adjust heuristics for effect_update_depth_exceeded
pull/11559/head
Dominic Gannaway 5 months ago committed by GitHub
parent 18f61a575f
commit a3702e8171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

@ -515,6 +515,7 @@ function infinite_loop_guard() {
* @returns {void}
*/
function flush_queued_root_effects(root_effects) {
infinite_loop_guard();
for (var i = 0; i < root_effects.length; i++) {
var signal = root_effects[i];
flush_nested_effects(signal, RENDER_EFFECT | EFFECT);
@ -701,6 +702,7 @@ function flush_nested_effects(effect, filter_flags, shallow = false) {
* @returns {void}
*/
export function flush_local_render_effects(effect) {
infinite_loop_guard();
// We are entering a new flush sequence, so ensure counter is reset.
flush_count = 0;
flush_nested_effects(effect, RENDER_EFFECT, true);

Loading…
Cancel
Save