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,21 +550,14 @@ 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) { execute_effect(current_effect);
current_effect = child; // Child might have been mutated since running the effect
continue; child = current_effect.first;
} }
} else { if (!shallow && child !== null) {
if (check_dirtiness(current_effect)) { current_effect = child;
execute_effect(current_effect); continue;
// Child might have been mutated since running the effect
child = current_effect.first;
}
if (!shallow && child !== null) {
current_effect = child;
continue;
}
} }
} else if ((flags & EFFECT) !== 0) { } else if ((flags & EFFECT) !== 0) {
if (is_branch || is_clean) { if (is_branch || is_clean) {

Loading…
Cancel
Save