Skip to content

lit-ui-router-ssr ​

The API reference of the lit-ui-router-ssr package, whose page covers installation and usage.

Modules ​

  • lit-ui-router-ssr — The server half: prerender() emits a static site from a ui-router-server mount table, renderToString() renders one page for a host that owns the request, and UiViewRenderer draws <ui-view> inside the @lit-labs/ssr render.
  • client — The client half: bootstrap() starts the router and hydrates the prerendered root, or renders it cold, and each served <ui-view> the walk wakes adopts its markup through uiViewSlot.
  • testing — Measures the hydration round trip: stamp the elements a prerender served before the client boots, then count how many the boot kept.
  • vite — The Vite plugin for a Lit app: ui-router-server/vite's serverRouterPlugin, with the prerender worker set up for Lit.