@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
40 lines (39 loc) • 1.41 kB
TypeScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
export declare const DEFAULT_STAGES: {
readonly INACTIVE: "inactive";
readonly LOADING: "loading";
readonly LOADING_MORE: "loading-more";
readonly ERROR: "error";
readonly ERROR_BOUNDARY: "error-caught-by-error-boundary";
readonly READY: "ready";
};
export declare const DEFAULT_LOADING_STAGES: readonly ["loading", "loading-more"];
export declare const ERROR_STAGES: readonly string[];
export declare const INFORMATIVE_STAGES: {
readonly INITIAL: "initial";
readonly TIMEOUT: "timeout";
readonly DEPENDENCY_CHANGE: "dependency-change";
readonly INTERACTIVE: "interactive";
readonly RENDERED: "rendered";
readonly INCOMPLETE_RENDER: "incomplete-render";
};
export declare const ACTION_TYPE: {
readonly RENDER: "render";
readonly UNRESPONSIVE: "unresponsive";
readonly STAGE_CHANGE: "stage-change";
readonly DEPENDENCY_CHANGE: "dependency-change";
};
export declare const MARKER: {
readonly START: "start";
readonly END: "end";
readonly POINT: "point";
};
export declare const OBSERVER_SOURCE = "observer";
export declare const DEFAULT_GARBAGE_COLLECT_MS = 2000;
export declare const DEFAULT_DEBOUNCE_MS = 500;
export declare const DEFAULT_TIMEOUT_MS = 45000;