Skip to content

detectIdenticalValueChanges

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


detectIdenticalValueChanges is a runtime configuration option for reactTracer() — the initializer of the @autotracer/react18 React component render tracing library. It controls whether ReactTracer warns when a state or prop reference changes but the compared value is still identical.

This is meant to surface unnecessary re-renders caused by new object, array, or function references that carry the same value.

Usage

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

reactTracer({ detectIdenticalValueChanges: false });

Released under the MIT License.