dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberClassComponent.js ModifiedM packages/react-reconciler/src/__tests__/ReactFiberRefs-test.js ModifiedM packages/react/src/ReactBaseClasses.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…