We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b481508 commit e77e16cCopy full SHA for e77e16c
packages/react-reconciler/src/ReactFiberClassComponent.js
@@ -821,6 +821,9 @@ function mountClassInstance(
821
instance.props = newProps;
822
instance.state = workInProgress.memoizedState;
823
if (!disableStringRefs) {
824
+ // When string refs are used in create-react-class legacy components,
825
+ // we need to make refs writable unless we patch all such copies of the
826
+ // class code that sets to a frozen emptyObject.
827
instance.refs = {};
828
}
829
0 commit comments