Skip to main content

Autosave Rolls Back Before Final Success Toast

Med.DashboardsWaiting

Mission

  • Incident

    Optimistic UI can briefly look healthy while the real save is still unresolved, which makes false positives dangerously easy

  • Goal

    Trigger the real save action and prove the flow survives rollback before reaching the final completed state

  • Pass condition

    Trigger the actual save action once

What counts

  • Trigger the actual save action once
  • idle -> running -> done lifecycle
  • timeline includes the stable done phase
Constraints1 rules + 1 mutation note

Rules

  • Do not accept optimistic intermediate state as final completion

Mutation

  • Rollback and retry phases can reorder under load
Hint 1

Action: Trigger the actual save action once.

Hint 2

Assertion: Assert idle -> running -> done lifecycle.

Hint 3

Assertion: Assert timeline includes the stable done phase.

0 Online

Code

Auto
Saved
Ln 1, Col 1
You need to log in / sign up to run or submit
Autosave lifecycle
draftidleawaiting save
idle