Numbers requests so only the newest one's reply is used.
The page reads /state after a check, after a run ends, after a rollback
and on a 409, and the replies can land in any order. Without this a slow
reply that left before Update was pressed arrived after it, set the run back
to the old one or to none, and the panel for the update that had just
started went away. invalidate() is for a change made some other way, such
as starting a run, that a reply already on its way must not undo.
Numbers requests so only the newest one's reply is used.
The page reads
/stateafter a check, after a run ends, after a rollback and on a 409, and the replies can land in any order. Without this a slow reply that left before Update was pressed arrived after it, set the run back to the old one or to none, and the panel for the update that had just started went away.invalidate()is for a change made some other way, such as starting a run, that a reply already on its way must not undo.