Function drekBuild

  • Executes a DOM builder function and then lifts all unrooted rendering contexts created by it.

    This helps to track a document connection or * settlement of any unrooted rendering contexts that created before its node added to document or rendered fragment. This may happen e.g. when the rendering context accessed from inside a custom element constructor when calling document.createElement('custom-element').

    Type Parameters

    • TResult

      DOM builder result type.

    Parameters

    • builder: ((this) => TResult)

      A DOM builder function to call.

        • (this): TResult
        • Parameters

          • this: void

          Returns TResult

    Returns TResult

    The value returned from DOM builder function.

Generated using TypeDoc