This optional entry supplies native ownership. Application authors normally use createNativeAdapter with its generated bootstrap; it does not enable routing from core’s default entry.
Read the usage guide or all entry points.
7 exports · published 3.2.0-rc.2 declarations
import { prepareInitialNativeOwners } from '@getforma/core/navigation';Values and functions
prepareInitialNativeOwners#
declare function prepareInitialNativeOwners(registry: NativeIslandRegistry, owners: readonly NativeOwnerRoot[]): readonly NativeOwnerScope[];Partition original document claims before the initial group activates.
Related declarations: NativeIslandRegistry, NativeOwnerRoot, NativeOwnerScope
prepareNativeOwner#
declare function prepareNativeOwner(registry: NativeIslandRegistry, root: HTMLElement, stateJson: string, options?: {
readonly outlet?: HTMLElement;
}): NativeOwnerScope;Prepare an imported, detached owner with its own typed state envelope.
Related declarations: NativeIslandRegistry, NativeOwnerScope
validateNativeOwnerTree#
declare function validateNativeOwnerTree(owners: readonly NativeOwnerScope[]): void;Validate the assembled linear owner branch before the router commits it.
Related declarations: NativeOwnerScope
Exported types
NativeIslandRegistry#
type NativeIslandRegistry = Record<string, (...args: never[]) => unknown>;NativeOwnerRoot#
interface NativeOwnerRoot {
readonly root: HTMLElement;
readonly outlet?: HTMLElement;
}NativeOwnerScope#
interface NativeOwnerScope extends NativeOwnerRoot {
validate(): void;
activate(): Promise<void>;
dispose(): void;
}Related declarations: NativeOwnerRoot
Internal integration exports
Other entry points
@getforma/core · @getforma/core/runtime · @getforma/core/runtime-hardened · @getforma/core/runtime-csp · @getforma/core/tc39 · @getforma/core/http · @getforma/core/storage · @getforma/core/compiled · JSX namespace