R
fn

useRenderInfo

v0.0.1testeddemo

Returns information about the component's render count and the last time it was rendered

Examples

ts
const { component, count, duration, lastRendered } = useRenderInfo();
ts
const { component, count, duration, lastRendered } = useRenderInfo(getCurrentInstance());

Demo

Loading demo…

Signature

ts
export function useRenderInfo(instance?: ComponentInternalInstance){ ... }

Parameters

ParameterTypeDescription
instance?ComponentInternalInstance | undefinedThe component instance to track the render count for

Returns

{ component: any; count: any; duration: Readonly<import("vue").Ref<number, number>>; lastRendered: any; }