dillon1000/react

Commit

[compiler] Reuse DropManualMemoization for ValidateNoVoidUseMemo (#34001)

Much of the logic in the new validation pass is already implemented in
DropManualMemoization, so let's combine them. I opted to keep the
environment flag so we can more precisely control the rollout.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34001).
* #34022
* #34002
* __->__ #34001
Browse files
Changed paths5 files
First-parent comparison
M compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/Inference/DropManualMemoization.ts ModifiedD compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoVoidUseMemo.ts DeletedM compiler/packages/babel-plugin-react-compiler/src/Validation/index.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.useMemo-no-return-value.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…