fw-08 step 01 — Matching, history, nesting
Tasks
- URL parsing and route matching: static, params, wildcards; rank by specificity.
- History API:
pushState,replaceState,popstate. Confirm for yourself thatpopstatedoes not report direction and thatpushStatedoes not fire it. - Nested routes and a matched-route chain.
- Redirects, including loops — detect and fail loudly rather than hanging.
- Track your own history index, since the stack is unreadable. Note what this forces you to build.
Done when
- Nested matching works with params
- Redirect loop detected and reported
- The platform constraints you had to work around are written down