SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[compiler] Allow assigning ref-accessing functions to objects if not mutated (#34026)

Allows assigning a ref-accessing function to an object so long as that
object is not subsequently transitively mutated. We should likely
rewrite the ref validation to use the new mutation/aliasing effects,
which would provide a more consistent behavior across instruction types
and require fewer special cases like this.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34026).
* #34027
* __->__ #34026

DiffTrain build for [04a7a61918522734a083bff37843865d7815d466](https://github.com/facebook/react/commit/04a7a61918522734a083bff37843865d7815d466)
J
josephsavona committed
e3d076194c1d662001d9342c2d72d9b1e929ade7
Parent: 491b4aa