dillon1000/react

Commit

Go back to shared refs instance object (#28911)

It turns out we already made refs writable in #25696, which has been in
canary for over a year. The approach in that PR also has the benefit of
being slightly more perf sensitive because it still uses a shared object
until the fiber is mounted. So let's just go back to that.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberClassComponent.js ModifiedM packages/react-reconciler/src/__tests__/ReactFiberRefs-test.js ModifiedM packages/react/src/ReactBaseClasses.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…