~/talk

How does a frontend router work? Deep dive with Vue Router

Talkat HolyJS Piter 2019 · 2019-05-24..05-25· [vue, frontend-architecture]
slides:none on file

Claims that complexity comes from overlapping responsibilities and shows a partial rewrite of Vue Router that splits history, matcher and router, moves route matching into a separate matcher module and reduces surface area of the history (old 300-line history vs new base of ~10 lines plus a 150-line URL parser). Demonstrates concrete fixes: a single popstate listener, handling Safari pushState quirks and inconsistent percent‑encoding, and a working push/guard flow with clearer async error handling.

AI-written summary · about

  1. 0:00Introduction
  2. 4:55Different kinds of routers
  3. 6:10Recap
  4. 9:05Vue Router Recap
  5. 15:24The Ugly Parts
  6. 15:35Global Guards
  7. 22:27History
  8. 23:16Responsibilities
  9. 26:06What can I show
  10. 31:21Encoding issues
  11. 36:16Router structure
  12. 37:06The matter
  13. 39:28Sorting Routes
  14. 40:19Dynamic Approach
  15. 40:34Current Routes
  16. 40:48Responsibility Expectations
  17. 41:18Sync Function
  18. 41:34Relative Routes
  19. 42:56Push History
  20. 44:04Location
  21. 52:03Extract component
  22. 53:18Summary
  23. 55:13Thank you
  24. 56:00Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.