diff --git a/compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoDerivedComputationsInEffects.ts b/compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoDerivedComputationsInEffects.ts index 20893b5e54..b449495cd6 100644 --- a/compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoDerivedComputationsInEffects.ts +++ b/compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoDerivedComputationsInEffects.ts @@ -211,7 +211,7 @@ function generateCompilerError( compilerDiagnostic.withDetail({ kind: 'error', loc: loc, - message: 'this useState shadows a reactive value', + message: `this useState shadows ${derivedDep}`, }); } }