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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
params? | readonly | unknown | That state's url parameter values, keyed by parameter id. | packages/lit-ui-router-ssr/src/signature.ts:20 |
resolves? | readonly | unknown | The 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? | readonly | unknown | The name of the state the document was drawn for. | packages/lit-ui-router-ssr/src/signature.ts:18 |
transported? | readonly | unknown | Where values a transporter encoded sit in resolves, when the payload marked any. | packages/lit-ui-router-ssr/src/signature.ts:33 |
version | readonly | string | The lit-ui-router-ssr version that drew the document. | packages/lit-ui-router-ssr/src/signature.ts:16 |
views? | readonly | unknown | The 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 |