diff --git a/compiler/packages/eslint-plugin-react-compiler/__tests__/ReactCompilerRuleTypescript-test.ts b/compiler/packages/eslint-plugin-react-compiler/__tests__/ReactCompilerRuleTypescript-test.ts index c4bbac351a..3ac2bec2da 100644 --- a/compiler/packages/eslint-plugin-react-compiler/__tests__/ReactCompilerRuleTypescript-test.ts +++ b/compiler/packages/eslint-plugin-react-compiler/__tests__/ReactCompilerRuleTypescript-test.ts @@ -36,6 +36,22 @@ const tests: CompilerTestCases = { }, ], invalid: [ + { + name: "[FALSE POSITIVE] Repro for hooks as normal values", + filename: "test.tsx", + code: normalizeIndent` + function Button(props) { + const scrollview = React.useRef(null); + return