functionCache
Package: @autotracer/react19 · Layer: Runtime · Type: boolean · Default: false
functionCache is a runtime configuration option for reactTracer() - the initializer of the @autotracer/react19 React component render tracing library. It enables ReactTracer's per-render function cache.
Cached results are keyed by function reference and argument combinations. The cache is cleared after each render cycle.
This is a specialized performance setting for ReactTracer's internal hot-path helpers, not a setting most users need to tune first.
If you want cache statistics while evaluating this behavior, see functionCacheLogging.
Usage
typescript
import { reactTracer } from "@autotracer/react19";
reactTracer({ functionCache: true });