Files
oxc-project__oxc/crates/oxc_react_compiler/fixtures/error.invalid-extra-memo-dependency-validation-enabled.tsx
Boshen c5f188a608 fix(react-compiler): use Babel v1 validation defaults (#25676)
Match the public validation defaults from babel-plugin-react-compiler 1.0 while retaining explicit opt-in for newer validations.

Validated with fixture snapshots and `just ready`.

AI-assisted investigation and implementation; reviewed and understood by the contributor.
2026-08-15 01:52:58 +00:00

11 lines
309 B
TypeScript

// @compilationMode:"infer" @panicThreshold:"none" @validateExhaustiveMemoizationDependencies
import {useMemo} from 'react';
export function Component({status, tick}) {
const value = useMemo(() => {
void tick;
return status.expiresAt;
}, [tick, status.expiresAt]);
return <div>{value}</div>;
}