Hosanna UI API v2.3.0-next
    Preparing search index...
    interface IViewLifecycleInfo {
        _hid: string;
        childrenCount: number;
        currentPhaseDuration_ms?: number;
        customViewInfo?: ICustomViewInfo;
        id: string;
        isOnScreen?: boolean;
        phaseHistory?: IPhaseChangeEvent[];
        rendererAttached: boolean;
        rendererParentHid?: string;
        rowIndex?: number;
        stuckViews: {
            _hid: string;
            id: string;
            stuckDuration_ms?: number;
            viewPhase: number;
            viewPhaseName: string;
        }[];
        tracingEnabled: boolean;
        type: string;
        viewPhase: number;
        viewPhaseName: string;
    }
    Index

    Properties

    _hid: string
    childrenCount: number

    Number of children currently in view tree

    currentPhaseDuration_ms?: number

    How long the view has been in the current phase (ms). Only available when lifecycle tracing is enabled for this view.

    customViewInfo?: ICustomViewInfo

    For CustomViewRow: state of the inner custom view

    id: string
    isOnScreen?: boolean

    For CV rows: whether the row is currently on screen

    phaseHistory?: IPhaseChangeEvent[]

    Phase change history (when lifecycle tracing is enabled). Shows all transitions since tracing was enabled.

    rendererAttached: boolean

    Whether the view has a renderer attached (renderer !== undefined)

    rendererParentHid?: string

    _hid of the renderer's parent node (if renderer is attached to a parent)

    rowIndex?: number

    For CV rows: the row index in the CollectionView

    stuckViews: {
        _hid: string;
        id: string;
        stuckDuration_ms?: number;
        viewPhase: number;
        viewPhaseName: string;
    }[]

    Views currently in Initial or Pending phase (not fully mounted). When tracing is enabled, includes stuckDuration_ms.

    Type declaration

    • _hid: string
    • id: string
    • OptionalstuckDuration_ms?: number

      Duration in current phase (only when tracing enabled for this view)

    • viewPhase: number
    • viewPhaseName: string
    tracingEnabled: boolean

    Whether lifecycle tracing is currently enabled for this view

    type: string
    viewPhase: number

    View phase: 0=Initial, 1=Pending, 2=Mounted, 3=Unmounted, 4=Hibernating

    viewPhaseName: string

    Human-readable phase name