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 aui-router-servermount table,renderToString()renders one page for a host that owns the request, andUiViewRendererdraws<ui-view>inside the@lit-labs/ssrrender. - 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 throughuiViewSlot. - 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'sserverRouterPlugin, with the prerender worker set up for Lit.