The #external context.

interface External<App extends SvelteApplication = SvelteApplication> {
    application: App;
    elementRootUpdate: () => (elementRoot: HTMLElement) => boolean;
    sessionStorage: WebStorage;
}

Type Parameters

Properties

application: App

The external application instance.

elementRootUpdate: () => (elementRoot: HTMLElement) => boolean

Create a function to generate a callback for Svelte components to invoke to update the tracked elements for application shells in the external application instance. There are rare cases that the main element root changes in a mounted application component. The update is only triggered on successive changes of elementRoot. Returns a boolean to indicate the element roots are updated.

sessionStorage: WebStorage

The session storage store manager associated with the external application.