4 ms·
It's nowhere near as simple as that. Many SPAs don't even have URLs for referring to the items they display, so they'd also need to invent a complete URL for ev
by ghusbands 5y ago
It's nowhere near as simple as that. Many SPAs don't even have URLs for referring to the items they display, so they'd also need to invent a complete URL for everything they might display and then also handle people visiting that URL. And if you change URLs in an SPA, you then need to interact with the browser history API, which, historically, has had a large number of disastrously bad bugs.
Things don't exist by default and every feature takes effort.
- asddubs 5y agoa lot of SPAs do this already to make page refreshes not kill state though, but still don't bother with links
- depressedpanda 5y agoFor gmail it is that simple. They've already solved providing unique URLs for all the internal app paths I bothered checking. For SPAs in general, it's true that there is some extra work in gluing URLs and app state together, but there's no lack of libraries that make that process easy and painless.