Errors and releases that break pages · core
Saved state that breaks the app: the blank white screen
A blank page for returning users often means the new code cannot read data the old version saved in the browser. Versioned storage, safe parsing and error boundaries stop it.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Clue: only returning users see a blank page, and new users or incognito are fine. Reproduce with the saved state of a returning user.
- Cause: the release changed the shape of state saved in localStorage (a persisted cart). Code near the root reads the old shape and throws during render.
- With no error boundary above it, React removes the whole UI, so the page is blank. Error boundaries at the root and around big sections with a "Reload" button limit the damage.
- Twist: if the new version already rewrote the stored data in the new shape, the old code breaks on it after a rollback. Saved data must stay readable by both versions.
- Fix: a versioned schema with a migration (most persist libraries take a version and a migrate function) and safe parsing that falls back to defaults.
- Prevent: an end-to-end test that starts from a saved old-version state, a staged rollout that watches the error rate, and an alert on a new error group after each release.
- Communicate: an incident channel, a support note (clear site data as a stopgap) and a status message.
The red pen
Common traps: mistake → fix
Mistake: Rollback always fixes a blank screen
Fix: new data may already be saved in a shape the old code cannot read.
Mistake: Incognito proves the page works
Fix: incognito has no saved state.
Mistake: An error boundary fixes the bug
Fix: it shows a fallback; you still need safe parsing and migration.
Easy to hard
Questions interviewers ask, easy to hard
- After a deploy, returning users see a blank white screen. What do you do?
- You rolled back and it is still broken for some. Why?
- How do you design persisted state so releases do not break it?
- Where do you place error boundaries?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.