lit-ui-router-ssr / 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 |
state? | readonly | unknown | The name of the state the document was drawn for. | packages/lit-ui-router-ssr/src/signature.ts:18 |
version | readonly | string | The lit-ui-router-ssr version that drew the document. | packages/lit-ui-router-ssr/src/signature.ts:16 |