Skip to content

lit-ui-router-ssr / client / HydrationSignature

Interface: HydrationSignature ​

Defined in: packages/lit-ui-router-ssr/src/signature.ts:14

What a document's signature block carries, as readHydrationSignature reads it: version checked, the rest as the block holds it.

prerender() writes state as the name of the state the router stood on and params as an object of that state's url parameters, each encoded by its type as the url spells it. Narrow both before use.

Properties ​

PropertyModifierTypeDescriptionDefined in
params?readonlyunknownThat state's url parameter values, keyed by parameter id.packages/lit-ui-router-ssr/src/signature.ts:20
resolves?readonlyunknownThe resolved values the document was drawn with, keyed by state name, then by resolve token, when prerender()'s payload hook supplied them.packages/lit-ui-router-ssr/src/signature.ts:31
state?readonlyunknownThe name of the state the document was drawn for.packages/lit-ui-router-ssr/src/signature.ts:18
transported?readonlyunknownWhere values a transporter encoded sit in resolves, when the payload marked any.packages/lit-ui-router-ssr/src/signature.ts:33
versionreadonlystringThe lit-ui-router-ssr version that drew the document.packages/lit-ui-router-ssr/src/signature.ts:16
views?readonlyunknownThe fully qualified name of each <ui-view> the document drew a routed component into, parent first: $default, $default.$default, or a named view's $default.aside. prerender() writes it as an array of strings.packages/lit-ui-router-ssr/src/signature.ts:26