42 ms·
Agreed, but I think an SPA feels like optimizing way too early because of how far it seems you can get now with Hotwire etc. Also with the pace of SPA's at the
by bestinterest 6y ago
Agreed, but I think an SPA feels like optimizing way too early because of how far it seems you can get now with Hotwire etc.
Also with the pace of SPA's at the moment its a risky bet 2015 React code is nothing like 2021 React code with hooks and functional components etc. And Svelte is a new challenger which I really like but I'd try to avoid a lot of the SPA's as much as possible but when you have a page which clearly needs it you can drop it in. I hope we can somehow find a way to collapse the barriers a little more of SPA/SSR only and have 'sprinkles' of SPA when you need it for certain pages like large booking calendars or such. Maybe that's a silly and complex idea though.
But as you say if you were making a true 'appy app' today then that's an obvious SPA choice.
Instagram I'm very iffy on if that needs to truly be a SPA too, sounds like some Hotwire turbo-frames around some things could do the trick but I'm being arrogant here as I'm unsure.
Trade offs everywhere.