labelHooksPattern
Package: @autotracer/inject-react19 · Layer: Build · Type: string · Default: "^use[A-Z].*"
labelHooksPattern is a shared transform configuration option used by normalizeConfig() and transform(). It supplies a regular-expression source string that matches additional hook names to label during injection.
Provide the pattern itself, not a JavaScript regex literal. The shared injector strips accidental leading and trailing / delimiters for convenience.
The pattern matches the hook identifier in a direct call or the property name in a non-computed member call. For example, placesApi.useSearchPlacesQuery() is matched as useSearchPlacesQuery, so the default pattern labels its assigned result. The original call and receiver are preserved. Computed member calls such as api[hookName]() and optional calls are not labeled.
Usage
import { normalizeConfig } from "@autotracer/inject-react19";
const config = normalizeConfig({
labelHooksPattern: "^use[A-Z].*",
});