Single Page Apps routers are broken

Robert DeLuca
Sep 3, 2017 · 3 min read
Disqus SPA broken router example

Plugging the hole

React (react-router)

Credit to Ryan Florence




Vue.js route announcer example
router.afterEach((to) => { 
if (! { return }
announcer.innerHTML = `${} has loaded`;

Why isn’t this done by default?

Robert DeLuca

Written by

• SDK + Support Engineer @percy_io 🦔 • I care a lot about accessibility. • Mustang enthusiast. • #ItsAllAboutTheU

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade