Skip to content

functionCacheLogging

Package: @autotracer/react18  ·  Layer: Runtime  ·  Type: boolean  ·  Default: false


functionCacheLogging is a runtime configuration option for reactTracer() — the initializer of the @autotracer/react18 React component render tracing library. It logs cache statistics after each render cycle.

This setting only has an effect when functionCache is enabled.

This is a specialized diagnostic setting for inspecting ReactTracer's internal cache behavior.

Usage

typescript
import { reactTracer } from "@autotracer/react18";

reactTracer({
  functionCache: true,
  functionCacheLogging: true,
});

Released under the MIT License.