---
url: https://lit-ui-router.dev/reference/lit-ui-router-ssr/client.md
---
[lit-ui-router-ssr](../index.md) / client

# 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`.

## Interfaces

* [AdoptableView](interfaces/AdoptableView.md) — The waking `<ui-view>` as an adopter sees it: the element holding the served nodes, with the template and render options a hydrate reads.
* [AdoptUiViewContextKey](interfaces/AdoptUiViewContextKey.md) — The identity of adoptUiViewContext: a plain object, so the key is unique under `===` and readable in a debugger.
* [BootstrapOptions](interfaces/BootstrapOptions.md) — bootstrap's options: HydrateRootOptions, plus the boot transition's seed, and the `transport` and `onSeed` handed to `seed` with it.
* [BootstrapResult](interfaces/BootstrapResult.md) — What bootstrap resolves with.
* [BootstrapViewReport](interfaces/BootstrapViewReport.md) — One view's entry in BootstrapResult.views.
* [HydrateRootOptions](interfaces/HydrateRootOptions.md) — hydrateRoot's options: lit's render options, plus the outcome callback.
* [HydrationSignature](interfaces/HydrationSignature.md) — What a document's signature block carries, as readHydrationSignature reads it: `version` checked, the rest as the block holds it.
* [LightDomHydratingConstructor](interfaces/LightDomHydratingConstructor.md) — The class LightDomHydrating produces: `Base`, branded.
* [LightDomHydratingElement](interfaces/LightDomHydratingElement.md) — A light-DOM element that owns its side of a server render.
* [ServedUiView](interfaces/ServedUiView.md) — A `<ui-view>` that owns its side of a server render.
* [ServedUiViewConstructor](interfaces/ServedUiViewConstructor.md) — The class withServedRender produces: a `<ui-view>` constructor, branded.
* [UiViewAdoptDetail](interfaces/UiViewAdoptDetail.md) — The detail of UiViewAdoptEvent.

## Type Aliases

* [AdoptOutcome](type-aliases/AdoptOutcome.md) — What a served `<ui-view>`'s wake came to.
* [AdoptReporter](type-aliases/AdoptReporter.md) — Receives each served view's outcome, as HydrateRootOptions.onAdopt.
* [AdoptUiViewContext](type-aliases/AdoptUiViewContext.md) — The adopt-view context key's type — AdoptUiViewContextKey branded with the adopter function, so `@consume({ context: adoptUiViewContext })` infers it.
* [BootstrapOutcome](type-aliases/BootstrapOutcome.md) — What bootstrap came to, once the page is live.
* [BootstrapSignature](type-aliases/BootstrapSignature.md) — How a boot compares with the hydration the document carried.
* [BootstrapViewOutcome](type-aliases/BootstrapViewOutcome.md) — What one view came to, as BootstrapResult.views reports it: its AdoptOutcome, or `pending` for a view the document was drawn with that had not woken when bootstrap resolved.
* [LightDomAdoptEvent](type-aliases/LightDomAdoptEvent.md) — A light-DOM hydrating element's hydration outcome.
* [LitElementConstructor](type-aliases/LitElementConstructor.md) — A `LitElement` subclass, in the form TypeScript accepts as a mixin's base.
* [UiViewAdoptEvent](type-aliases/UiViewAdoptEvent.md) — Dispatched from a served `<ui-view>` at its wake, once per view, bubbling and composed, in production as in development.

## Variables

* [adoptUiViewContext](variables/adoptUiViewContext.md) — The context key a hydration client answers for, under the container it hydrates, with the function that adopts a waking `<ui-view>`'s held nodes.
* [lightDomAdoptEventName](variables/lightDomAdoptEventName.md) — The event a light-DOM hydrating element dispatches from itself at its wake, once its outcome is known.
* [lightSlot](variables/lightSlot.md) — The hole a `LightDomHydrating` element fills, written at the use site: the uiViewSlot directive under a name that does not read as a view.
* [servedViewBrand](variables/servedViewBrand.md) — Brands the served class, so a second copy of this package recognises the one already registered.
* [uiViewAdoptEventName](variables/uiViewAdoptEventName.md) — The name of the event a served `<ui-view>` dispatches once its wake's outcome is known.
* [uiViewSlot](variables/uiViewSlot.md) — The hole a `<ui-view>` fills, written at the use site.

## Functions

* [bootstrap](functions/bootstrap.md) — Boots `router` into the page `container` holds, and resolves once that page is live.
* [hydrateRoot](functions/hydrateRoot.md) — Adopts a server-rendered container, and the `<ui-view>`s that wake under it.
* [isServedViewClass](functions/isServedViewClass.md) — Whether `constructor` is a served `<ui-view>` class — this package's, or another copy's.
* [LightDomHydrating](functions/LightDomHydrating.md) — Adds the light-DOM side of a server render to a consumer's `LitElement`.
* [readHydrationSignature](functions/readHydrationSignature.md) — Reads the hydration signature `prerender()` wrote ahead of the render a container holds: the version of this package that drew the document, and the state and parameter values it was drawn for.
* [readResolvePayload](functions/readResolvePayload.md) — Reads the resolve payload `prerender()` wrote into the container's hydration signature: the state and url parameters the document was drawn for, and the values its resolves settled on, keyed by state name, then by resolve token.
* [withServedRender](functions/withServedRender.md) — Adds the served-render side of `<ui-view>` to `Base`.

## References

### registerTraceCategory

Re-exports [registerTraceCategory](../index/functions/registerTraceCategory.md)
