dillon1000/react

Commit

[compiler] Fix merging of queued states in InferReferenceEffects

Fixes a bug found by mofeiZ in #29878. When we merge queued states, if the new state does not introduce changes relative to the queued state we should use the queued state, not the new state.

ghstack-source-id: c59f69de15fa89bd1ed049d0a7d221651577ae34
Pull Request resolved: https://github.com/facebook/react/pull/29879
Browse files
Changed paths3 files
First-parent comparison
M compiler/packages/babel-plugin-react-compiler/src/Inference/InferReferenceEffects.ts ModifiedA compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/phi-reference-effects.expect.md AddedA compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/phi-reference-effects.ts Added
Patch

Files changed

Rendering syntax-highlighted changes…