@threadplane/renderInterfacev0.3.4

RenderLifecycleEvent

Mount or destruction notification for a render spec or element, with optional element identity.

import type { RenderLifecycleEvent } from '@threadplane/render';

Declaration

export interface RenderLifecycleEvent  {
  readonly elementKey?: string;
  readonly elementType?: string;
  readonly event: 'mounted' | 'destroyed';
  readonly scope: 'spec' | 'element';
  readonly type: 'lifecycle';
}

Members

elementKey

readonly elementKey?: string;

elementType

readonly elementType?: string;

event

readonly event: 'mounted' | 'destroyed';

scope

readonly scope: 'spec' | 'element';

type

readonly type: 'lifecycle';