Skip to content

trackedStateResolution

Package: @autotracer/react19  ·  Layer: Runtime  ·  Type: "hybrid" | "labels-only"  ·  Default: "hybrid"


trackedStateResolution is a runtime configuration option for reactTracer() - the initializer of the @autotracer/react19 React component render tracing library. It controls how state changes are resolved for tracked components.

This setting applies only to tracked components. Untracked components always use fiber-based state resolution.

Values

  • "hybrid": Matches labeled state against fiber hooks and may infer nested hook labels.
  • "labels-only": Reports only explicitly labeled state.

The same labelState() contract covers existing hooks and React 19 additions such as useActionState and useOptimistic.

Usage

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

reactTracer({ trackedStateResolution: "labels-only" });

Released under the MIT License.