chore: deduplicate code (#11534)

pull/11539/head
Simon H 10 months ago committed by GitHub
parent 4b7e0025a8
commit f70c0370be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -550,13 +550,7 @@ function process_effects(effect, filter_flags, shallow, collected_effects) {
} }
if ((flags & RENDER_EFFECT) !== 0) { if ((flags & RENDER_EFFECT) !== 0) {
if (is_branch) { if (!is_branch && check_dirtiness(current_effect)) {
if (!shallow && child !== null) {
current_effect = child;
continue;
}
} else {
if (check_dirtiness(current_effect)) {
execute_effect(current_effect); execute_effect(current_effect);
// Child might have been mutated since running the effect // Child might have been mutated since running the effect
child = current_effect.first; child = current_effect.first;
@ -565,7 +559,6 @@ function process_effects(effect, filter_flags, shallow, collected_effects) {
current_effect = child; current_effect = child;
continue; continue;
} }
}
} else if ((flags & EFFECT) !== 0) { } else if ((flags & EFFECT) !== 0) {
if (is_branch || is_clean) { if (is_branch || is_clean) {
if (!shallow && child !== null) { if (!shallow && child !== null) {

Loading…
Cancel
Save