dillon1000/react
Commit
Browse files forwardRef() components should not re-render on deep setState() (#12690)
* Add a failing test for forwardRef memoization * Memoize forwardRef props and bail out on strict equality * Bail out only when ref matches the current ref
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberBeginWork.js ModifiedM packages/react/src/__tests__/forwardRef-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…