dillon1000/react

Commit

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
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberBeginWork.js ModifiedM packages/react/src/__tests__/forwardRef-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…