dillon1000/react

Commit

[compiler] add fixture for optimization across scopes

Adds a fixture based on internal case where our current output is quite a bit more verbose than the original memoization. See the comment in the fixture for more about the heuristic we can apply.

ghstack-source-id: e637a3814077559a1a56724eafe2567efed0b8d7
Pull Request resolved: https://github.com/facebook/react/pull/29998
Browse files
Changed paths2 files
First-parent comparison
A compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reordering-across-blocks.expect.md AddedA compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reordering-across-blocks.js Added
Patch

Files changed

Rendering syntax-highlighted changes…