UNPKG

@zendesk/react-measure-timing-hooks

Version:

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

13 lines (12 loc) 656 B
import React from 'react'; import type { TraceManager } from './TraceManager'; import type { RelationSchemasBase } from './types'; export interface TraceManagerDebuggerProps<RelationSchemasT extends RelationSchemasBase<RelationSchemasT>> { traceManager: TraceManager<RelationSchemasT>; float?: boolean; traceHistoryLimit?: number; } /** * A component that visualizes the current state of the TraceManager and its Traces */ export default function TraceManagerDebugger<RelationSchemasT extends RelationSchemasBase<RelationSchemasT>>({ traceManager, float, traceHistoryLimit, }: TraceManagerDebuggerProps<RelationSchemasT>): React.JSX.Element;