vue-lynx / Page

Variable: Page

const Page: DefineComponent<object, () => undefined | VNode<RendererNode, RendererElement, object>[], object, object, object, ComponentOptionsMixin, ComponentOptionsMixin, object, string, PublicProps, ToResolvedProps<object, object>, object, object, object, object, string, ComponentProvideOptions, true, object, any>;

Transparent runtime representation of an explicit <page> wrapper.

Lynx creates the native page before Background JS starts. This component applies the wrapper's attributes to that existing root and renders only its children, so Vue never asks the Main Thread to create a second page.

Exactly one wrapper owns the root at a time. When the owner unmounts (or is deactivated by <KeepAlive>), ownership is handed to the next waiting wrapper — this keeps replacement flows working where the incoming page mounts before the outgoing one unmounts (<Transition> without out-in, <Suspense>, route swaps).

Defined in

packages/vue-lynx/runtime/src/Page.ts:78