chore: don't reset effects to CLEAN in is_dirty while time travelling

Not needed for any test.
async-another-try-pt-1-prune
Rich Harris 20 hours ago
parent 927e5baff2
commit e0cb3c667c
No known key found for this signature in database

@ -185,10 +185,8 @@ export function is_dirty(reaction) {
if (
(flags & CONNECTED) !== 0 &&
// During time traveling we don't want to reset the status so that
// traversal of the graph in the other batches still happens. Effects
// can be reset because block/async effects execute right away and others
// are deferred and re-dirtied as needed.
(batch_values === null || (flags & DERIVED) === 0)
// traversal of the graph in the other batches still happens
batch_values === null
) {
set_signal_status(reaction, CLEAN);
}

Loading…
Cancel
Save