chore: deduplicate code (#11534)

pull/11539/head
Simon H 8 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 (is_branch) {
if (!shallow && child !== null) {
current_effect = child;
continue;
}
} else {
if (check_dirtiness(current_effect)) {
if (!is_branch && check_dirtiness(current_effect)) {
execute_effect(current_effect);
// Child might have been mutated since running the effect
child = current_effect.first;
@ -565,7 +559,6 @@ function process_effects(effect, filter_flags, shallow, collected_effects) {
current_effect = child;
continue;
}
}
} else if ((flags & EFFECT) !== 0) {
if (is_branch || is_clean) {
if (!shallow && child !== null) {

Loading…
Cancel
Save