Type alias Lazy<T>

Lazy<T>: {
    cache: Option<Dom<T>>;
    refs: WeakSet<NonNullable<unknown>>;
    thunk: (() => Dom<T>);
    type: typeof lazySymbol;
}

Lazy evaluating object.

Type Parameters

  • T

Type declaration

  • cache: Option<Dom<T>>

    The rendered virtual DOM if did.

  • Readonly refs: WeakSet<NonNullable<unknown>>

    The referencing objects used by thunk. These references are used to determine which Lazy is needed to rerender.

  • Readonly thunk: (() => Dom<T>)
      • (): Dom<T>
      • The rendering function which has references of refs.

        Returns Dom<T>

  • Readonly type: typeof lazySymbol

Generated using TypeDoc