dillon1000/react

Commit

[compiler] Handle optional where innermost property access is non-optional

Handles an additional case as part of testing combinations of the same path being accessed in different places with different segments as optional/unconditional.

ghstack-source-id: ace777fcbb98fa8f41b977d0aec8418f3f58fb7b
Pull Request resolved: https://github.com/facebook/react/pull/30836
Browse files
Changed paths3 files
First-parent comparison
M compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PropagateScopeDependencies.ts ModifiedA compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/optional-member-expression-inverted-optionals-parallel-paths.expect.md AddedA compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/optional-member-expression-inverted-optionals-parallel-paths.js Added
Patch

Files changed

Rendering syntax-highlighted changes…