RenderLifecycleSnapshot
Unpublished development API. This package is under development and is not available as a published release.
When a rendered tree first mounted, how often its parts mounted, and when state and actions last moved.
import type { RenderLifecycleSnapshot } from '@threadplane/react/render';Declaration
export interface RenderLifecycleSnapshot {
readonly firstMountAt: {
readonly kind: 'spec' | 'element';
readonly elementType?: string;
readonly at: number;
} | null;
readonly lastHandlerInvokedAt: {
readonly action: string;
readonly at: number;
} | null;
readonly lastMountAt: number | null;
readonly lastStateChangeAt: number | null;
readonly mountCount: number;
}Members
firstMountAt
The first mount seen. It does not reset.
readonly firstMountAt: {
readonly kind: 'spec' | 'element';
readonly elementType?: string;
readonly at: number;
} | null;lastHandlerInvokedAt
The latest action reported, and when.
readonly lastHandlerInvokedAt: {
readonly action: string;
readonly at: number;
} | null;lastMountAt
Epoch milliseconds of the latest mount.
readonly lastMountAt: number | null;lastStateChangeAt
Epoch milliseconds of the latest store write.
readonly lastStateChangeAt: number | null;mountCount
Every spec and element mount seen.
readonly mountCount: number;