Effects and data fetchingPath 19/30
EffectsAsync dataState & events
Your workspace must pass its server-side browser checks to complete this challenge.
Day 10 — Recover an optimistic preference update
Make a preference change feel immediate without losing the ability to recover honestly when persistence fails.
Requirements
- Update only the changed preference optimistically.
- Disable only the pending control, not the whole form.
- Restore the previous server-backed state if its request fails.
- Show a failure message and a way to retry.
Interview review
- Why should a rollback use the value from before the request?
- How would concurrent updates to different preferences affect this design?