Rethinking SPAsInteractive demos
The companion demos to the slideshow. Each one shows a single failure mode of the “state lives in the SPA” assumption — open the linked pages in two tabs (or a tab plus an incognito tab) to see the divergence.
- Stale in-memory state Open in two tabs. One updates; the other doesn't notice.
- Token refresh race Main page + iframe both try to refresh. The losing client is signed out.
- Account switch doesn’t propagate Switch account in one tab. The other tab keeps showing the old account’s data.
- Optimistic update orphan Optimistic write appears locally, server rejects, the UI never finds out.
- State chaos Server validates against state the user never saw. Wrong answer on a right click.