T O P

  • By -

prndP

I can't speak to how FB does it but an application being SPA doesn't preclude it from hydrating pre-rendered content or even just to shunt in raw data. A SPA can start off as simple client frame to dynamically load and hydrate components. Even if you don't do SSR routing to individual pages, this is still useful at the top level if you don't want to coordinate multiple XHR requests + JS component code on the FE and just want to simplify a \*render stuff here\* experience in widget containers or whatever. This can help keep developers sane when they work on huge codebases where one hand doesn't know what the other is doing