@samitouri / QOS-React / commits / c92c579715

[compiler] Fix Pipeline.ts early-exit, formatting, and style issues (#35884)

Fix the transformFire early-exit in Pipeline.ts to only trigger on new errors from transformFire itself, not pre-existing errors from earlier passes. The previous `env.hasErrors()` check was too broad — it would early-exit on validation errors that existed before transformFire ran. Also add missing blank line in CodegenReactiveFunction.ts Context class, and fix formatting in ValidateMemoizedEffectDependencies.ts. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/35884). * #35888 * __->__ #35884

Joseph Savona committed Feb 23, 2026 at 16:16 UTC c92c57971541915a69ad23abe9fdd14ac56b3975
1 file changed +1
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts
+1
@@ -442,6 +442,7 @@ class Context {
442 recordError(error: CompilerErrorDetail): void {
443 this.env.recordError(error);
444 }
445 +
446 get nextCacheIndex(): number {
447 return this.#nextCacheIndex++;
448 }