[compiler] Rename mismatched variable names after type changes (#35883)
Rename `state: Environment` to `env: Environment` in ValidateMemoizedEffectDependencies visitor methods, and `errorState: Environment` to `env: Environment` in ValidatePreservedManualMemoization's validateInferredDep. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/35883). * #35888 * #35884 * __->__ #35883
Joseph Savona committed
Feb 23, 2026 at 16:13 UTC
011cede06811927e46147fa77f2581c3119f42b8
1 file changed
+2
-2
compiler/packages/babel-plugin-react-compiler/src/Validation/ValidatePreservedManualMemoization.ts
+2
-2
@@ -230,7 +230,7 @@ function validateInferredDep(
230
temporaries: Map<IdentifierId, ManualMemoDependency>,
231
declsWithinMemoBlock: Set<DeclarationId>,
232
validDepsInMemoBlock: Array<ManualMemoDependency>,
233
- errorState: Environment,
233
+ env: Environment,
234
memoLocation: SourceLocation,
235
): void {
236
let normalizedDep: ManualMemoDependency;
@@ -280,7 +280,7 @@ function validateInferredDep(
280
errorDiagnostic = merge(errorDiagnostic ?? compareResult, compareResult);
281
}
282
}
283
- errorState.recordError(
283
+ env.recordError(
284
CompilerDiagnostic.create({
285
category: ErrorCategory.PreserveManualMemo,
286
reason: 'Existing memoization could not be preserved',