Async: Values can get out of sync
Opened this issue · 0 comments
dummdidumm commented
Describe the bug
If you have a value X that causes a pending batch, and while that batch is pending cause creation of another batch which creates a new branch and therefore new template effects which also read that value X, those template effects are not correctly rescheduled once the pending batch resolves. As a result, the shown values of X get out of sync (once shows the old, once the new value).
I believe it happens because the pending batch does not know of the new effects that are created (they are not in its (maybe_)dirty arrays), therefore does not schedule them as (maybe_)dirty on revival and therefore never runs them.
Reproduction
Logs
System Info
irrelevantSeverity
blocking an upgrade