React debugging exercise
An older failed save undoes a newer edit
Task titles sometimes snap back to an old value even though the latest save went through. Find the cause and make the optimistic updates trustworthy.
What you’ll practice: optimistic updates, async saves, error handling, useState
Bug report
People rename tasks and see the new title straight away. Sometimes, a moment later, a title they already changed snaps back to an older value, even though the latest save succeeded.
Support noticed it happens after a save fails, and that it can even undo edits to a different task that was saved in the meantime.
Reproduce the issue, identify the cause, and make the smallest reliable fix. Titles must still update immediately, and a failed save must still be undone and reported.
Be ready to explain the sequence of saves that causes the wrong title and how you verified your change.
Included in Full accessThis and 4 more scenarios, plus every new one
$14.50then $29paid once
Get Full accessNot sure yet? Try a free one first: Editing one row changes another
No account. Your practice stays in this browser.
Practice on a computer
The code editor needs a bigger screen. Get this page’s link by email, and open it on your computer.
How it works
- 1
Reproduce and fix
Each scenario is a small app with one real bug. Reproduce it in the live preview, find the cause, and make the smallest fix. Five checks confirm the behavior.
- 2
Explain your reasoning
Answer four short questions: what caused it, what you changed, what you ruled out, and how you verified it.
- 3
Review another fix
Judge a proposed fix for the same bug, approve it or request changes, then see how the checks treat it.