Files
react/compiler/packages
Joe Savona 1b7478246d [compiler] Special-case phi inference for mixed readonly type
This allows us to handle common operations such as `useFragment(...).edges.nodes ?? []` where we have a `Phi(MixedReadonly, Array)`. The underlying pattern remains general-purpose and not Relay-specific, and any API that returns transitively "mixed" data (primitives, arrays, plain objects) can benefit from the same type refinement.

ghstack-source-id: 5128310894
Pull Request resolved: https://github.com/facebook/react/pull/30797
2024-08-23 15:24:44 -07:00
..