Interface that a component should implement, so its lifecycle method can be called by the framework.

interface IComponent {
    loaded?(context: Readonly<{
        componentId: string;
        entryPointId: string;
    }>): Promise<void>;
}

Methods

Methods

  • Called when the component is initially loaded.

    Parameters

    • context: Readonly<{
          componentId: string;
          entryPointId: string;
      }>

      The context created for loading current component.

    Returns Promise<void>