UNPKG

@zendesk/react-measure-timing-hooks

Version:

react hooks for measuring time to interactive and time to render of components

9 lines (8 loc) 491 B
import type { UseBeacon } from './hooksTypes'; import type { TraceManager } from './TraceManager'; import type { RelationSchemasBase } from './types'; /** * The job of the beacon: * emit component-render-start, component-render, component-unmount entries */ export declare const generateUseBeacon: <RelationSchemasT extends RelationSchemasBase<RelationSchemasT>, RequiredAttributesT = {}>(traceManager: TraceManager<RelationSchemasT>) => UseBeacon<RelationSchemasT, RequiredAttributesT>;