RenderLifecycleEvent
Unpublished development API. This package is under development and is not available as a published release.
The tree or one of its elements mounted or was removed. An element mounts when its view renders, so a hidden element mounts once it becomes visible; elements report before the tree that holds them, because React mounts children first.
import type { RenderLifecycleEvent } from '@threadplane/react/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';