fw-08 step 03 — Back, scroll restoration, and blocking
Tasks
- Back/forward, including during an in-flight navigation. Decide and document who wins.
- Scroll restoration with
history.scrollRestoration = 'manual'. Restore too early, before async content sizes the page, and watch it clamp. Then fix it. - Navigation blocking on unsaved changes. Discover that you cannot cancel a browser back navigation, and explain why the platform refuses.
- Double submit: two rapid clicks on a link with a side-effecting loader.
- Error routes with per-level boundaries.
Done when
- Back-during-load behaviour defined and tested
- Early-restoration bug reproduced, then fixed
- The limits of in-app navigation blocking documented, with the platform rationale