[]previous and next page

RootOptions

Options of createRoot.

Options of createRoot.

Import#

ts
import type { RootOptions } from "@shadow-js/core";

Signature#

ts
interface RootOptions {
  /**
   * When true, the root is not attached to the current owner: it outlives that owner and is
   * disposed only through the `dispose` function passed to the body. It still sees the context
   * values provided above the current owner.
   * @default false (the root is a child of the current owner and is disposed with it)
   */
  detached?: boolean;
}

Members#

Name Type Description
detached? detached?: boolean When true, the root is not attached to the current owner: it outlives that owner and is disposed only through the dispose function passed to the body. It still sees the context values provided above the current owner.