|
|
@ -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) {
|
|
|
|