5 ms·
I mean, there's nothing about an SPA that forces you to break the back button, to the contrary, it's possible to have a very good navigation experience and work
by codeflo 3y ago
I mean, there's nothing about an SPA that forces you to break the back button, to the contrary, it's possible to have a very good navigation experience and working bookmarks. But it takes some thinking to get it right.
- afavour 3y agoI don’t think “forces” is the right way to think about it. By default a SPA breaks navigation history etc (it’s right in the name). It’s not onerous to reimplement it correctly but reimplement you must.
- RHSeeger 3y agoAnd it's very common for it to be re-implemented incorrectly.
- robertoandred 3y agoNo it doesn't and no you don't. Every modern SPA framework has solved that problem long ago.
- afavour 3y agoRight, so you agree: you have to reimplement it. You can just use a framework to do so. It might be news to folks to learn that every single SPA framework has solved the problem entirely because it's really not an uncommon experience to have your browser history broken by a SPA. I believe that most frameworks implement the API correctly. I also believe a good number of developers use the framework incorrectly.
- Joker_vD 3y agoOr simply unaware about the whole "back button" debacle. Which is yet another stone to throw at the SPA camp: if using technology A requires a programmer to learn about more stuff (and do more work) than technology B for achieving pretty much the same end results, then technology A is inferior to B (for achieving those particular end results, of course).
- robertoandred 3y agoThat's like saying you have to reimplement assembly arithmetic, you can just use the Calculator app to do so. Bad websites are the results of bad developers, not the tool. You can have your history messed up by any kind of website.
- afavour 3y agoNo, it’s like saying you’ve been provided with a calculator but may, if you wish, create your own calculator with some parts provided. No guarantee it adds numbers together correctly.
- robertoandred 3y agoWhy would anyone choose to create and use their own unreliable calculator instead of what came installed?
- afavour 3y ago…that’s the point being made
- robertoandred 3y agoThe point that bad websites are the result of bad developers, not the tools?
- afavour 3y agoI don't understand why this point is so complicated. Yes, bad SPA developers mess it up all the time. Bad MPA developers do not mess it up because it doesn't require reimplementation by said bad developer, it works out of the box.
- robertoandred 3y agoIt works out of the box on SPAs too. It doesn't require reimplementation by said bad developer.