|
|
|
|
@ -25,11 +25,12 @@ function clear_marked(deps) {
|
|
|
|
|
* @param {Set<Effect>} maybe_dirty_effects
|
|
|
|
|
*/
|
|
|
|
|
export function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
|
|
|
if ((effect.f & DIRTY) !== 0) {
|
|
|
|
|
dirty_effects.add(effect);
|
|
|
|
|
} else if ((effect.f & MAYBE_DIRTY) !== 0) {
|
|
|
|
|
maybe_dirty_effects.add(effect);
|
|
|
|
|
}
|
|
|
|
|
dirty_effects.add(effect);
|
|
|
|
|
|
|
|
|
|
// if ((effect.f & DIRTY) !== 0) {
|
|
|
|
|
// } else if ((effect.f & MAYBE_DIRTY) !== 0) {
|
|
|
|
|
// maybe_dirty_effects.add(effect);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// Since we're not executing these effects now, we need to clear any WAS_MARKED flags
|
|
|
|
|
// so that other batches can correctly reach these effects during their own traversal
|
|
|
|
|
|