SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

Store instance handles in an internal map behind flag (#35053)

We already append `randomKey` to each handle name to prevent external
libraries from accessing and relying on these internals. But more
libraries recently have been getting around this by simply iterating
over the element properties and using a `startsWith` check.

This flag allows us to experiment with moving these handles to an
internal map.

This PR starts with the two most common internals, the props object and
the fiber. We can consider moving additional properties such as the
container root and others depending on perf results.

DiffTrain build for [a44e750e87fd0869cdeda0418e279e19c1ee07dd](https://github.com/facebook/react/commit/a44e750e87fd0869cdeda0418e279e19c1ee07dd)
J
jackpope committed
b899e1baa6f0104eeac5017981a4bd631f4848ee
Parent: 01afa95