fn
useRenderInfo
v0.0.1testeddemoReturns 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
| Parameter | Type | Description |
|---|---|---|
instance? | ComponentInternalInstance | undefined | The component instance to track the render count for |
Returns
{ component: any; count: any; duration: Readonly<import("vue").Ref<number, number>>; lastRendered: any; }