Skip to the page

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.

The 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

  1. After a deploy, returning users see a blank white screen. What do you do?
  2. You rolled back and it is still broken for some. Why?
  3. How do you design persisted state so releases do not break it?
  4. 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 voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview