Skip to content

lit-ui-router-ssr / client / BootstrapResult

Interface: BootstrapResult ​

Defined in: packages/lit-ui-router-ssr/src/client.ts:926

What bootstrap resolves with.

Properties ​

PropertyModifierTypeDescriptionDefined in
error?readonlyunknownThe boot transition's Rejection, or what the root hydrate() threw; present only on a cold boot that one of them caused.packages/lit-ui-router-ssr/src/client.ts:952
outcomereadonlyBootstrapOutcomeWhat the root hydrate came to, not each view. adopted: the served document was hydrated, and each served view reported its own AdoptOutcome, which BootstrapResult.views collects; a document whose views all rendered cold still reports adopted here. cold: the container was emptied and the template rendered into it.packages/lit-ui-router-ssr/src/client.ts:934
signaturereadonlyBootstrapSignatureHow the boot compares with the document's hydration signature; see BootstrapSignature.packages/lit-ui-router-ssr/src/client.ts:936
viewsreadonlyReadonlyMap<string, BootstrapViewReport>Each served view's outcome, keyed by the view's fully qualified name ($default, $default.$default, $default.aside): every view the signature says the document was drawn with, in the order it lists them, then any other view that woke and requested the adopter, such as one that woke with no served render. A drawn view not yet woken is pending; the first view to report under a name holds it. A snapshot taken as the call resolves: a view that adopts later still reports to onAdopt and its UiViewAdoptEvent. Empty on a cold boot.packages/lit-ui-router-ssr/src/client.ts:947