Hosanna UI API v2.3.0-next
    Preparing search index...

    A single handler execution event.

    Captures everything that happened when an event handler fired:

    • Which view's handler was called
    • The event properties (view vs focusTarget for focus events)
    • All getSubView calls made by the handler
    • All property changes made by the handler
    interface IHandlerTraceEvent {
        duration_ms: number;
        eventData: {
            cacheKey?: string;
            childIndex?: number;
            focusTarget?: IHandlerTraceViewInfo;
            key?: string;
            parent?: IHandlerTraceViewInfo;
            pressed?: boolean;
            rendererAttachedAfter?: boolean;
            rendererAttachedBefore?: boolean;
            rendererParentAfter?: string;
            rendererParentBefore?: string;
            view?: IHandlerTraceViewInfo;
            viewPhaseAfter?: number;
            viewPhaseBefore?: number;
        };
        getSubViewCalls: IGetSubViewCall[];
        handlerName: TracedHandlerName;
        propertyChanges: IHandlerPropertyChange[];
        timestamp: number;
        viewHid: string;
        viewId: string;
        viewType: string;
    }
    Index

    Properties

    duration_ms: number

    Duration of handler execution in ms

    eventData: {
        cacheKey?: string;
        childIndex?: number;
        focusTarget?: IHandlerTraceViewInfo;
        key?: string;
        parent?: IHandlerTraceViewInfo;
        pressed?: boolean;
        rendererAttachedAfter?: boolean;
        rendererAttachedBefore?: boolean;
        rendererParentAfter?: string;
        rendererParentBefore?: string;
        view?: IHandlerTraceViewInfo;
        viewPhaseAfter?: number;
        viewPhaseBefore?: number;
    }

    Event data passed to the handler.

    For focus events:

    • view: The PARENT view that detected the focus change (NOT the focused view!)
    • focusTarget: The actual view that now has focus

    For key events:

    • key: The key that was pressed

    Type declaration

    • OptionalcacheKey?: string

      For pool hooks: the InstancePool key (_cacheKey) so the trace can be correlated with InstancePool bookkeeping. Undefined if the view has never been through the pool.

    • OptionalchildIndex?: number

      For onMount: the child index in the parent

    • OptionalfocusTarget?: IHandlerTraceViewInfo

      For focus events: the actually focused view (event.focusTarget)

    • Optionalkey?: string

      For key events: the key string

    • Optionalparent?: IHandlerTraceViewInfo

      For onMount: the parent view being mounted to

    • Optionalpressed?: boolean

      For key events: whether the key is pressed down

    • OptionalrendererAttachedAfter?: boolean

      For hibernation: whether renderer was attached after

    • OptionalrendererAttachedBefore?: boolean

      For hibernation: whether renderer was attached before

    • OptionalrendererParentAfter?: string

      For hibernation: renderer parent _hid after

    • OptionalrendererParentBefore?: string

      For hibernation: renderer parent _hid before

    • Optionalview?: IHandlerTraceViewInfo

      For focus events: the parent view (event.view) - common confusion source

    • OptionalviewPhaseAfter?: number

      For hibernation: view phase after the call

    • OptionalviewPhaseBefore?: number

      For hibernation: view phase before the call

    getSubViewCalls: IGetSubViewCall[]

    All getSubView calls made during this handler execution

    handlerName: TracedHandlerName

    Which handler was called

    propertyChanges: IHandlerPropertyChange[]

    All property changes made during this handler execution

    timestamp: number

    When the handler was called

    viewHid: string

    _hid of the view whose handler was called

    viewId: string

    id of the view whose handler was called

    viewType: string

    View type/class name