SPA/SSR/SSG

SSR/SSG:

  • HTML streaming
  • Progressive rendering (aka partial hydration)

SPA/SSG:

  • +prerender (boolean) => disable/enable (on page-by-page basis)
  • +ssr (boolean) => toggle SSR/SPA (on page-by-page basis)
  • +data.client.js => 100% client-side data fetching
  • SSG redirects
  • 🚧 SSG dynamic routes (aka SPA fallback)

Easily create SPA like the old days.
=> surprisingly hard with other frameworks (but shouldn't!)