@ottrelite/core.withComponentRenderTracing
withComponentRenderTracing<P>(eventName, api?, WrappedComponent): NamedExoticComponent<P>
High-Order Component that wraps @seeuseComponentRenderTracing hook. For details, please consult the hook's documentation.
| Name | Type |
|---|---|
P | extends IntrinsicAttributes |
| Name | Type | Default value | Description |
|---|---|---|---|
eventName | string | undefined | The name of the event to trace. |
api | TracingAPI | 'dev' | The API to use for tracing (default is 'dev'). |
WrappedComponent | ComponentType<P> | undefined | - |
NamedExoticComponent<P>
An object containing the markJSRenderEnd function.