You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
782
-
);
783
-
if(1!==owner.tag)
784
-
throwError(
785
-
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
797
-
type,
798
-
stringRef
799
-
),
800
-
(didWarnAboutStringRefs[type]=!0));
801
-
owner=owner.stateNode;
802
-
if(!owner)
803
-
throwError(
804
-
"Missing owner for string ref "+
805
-
stringRef+
806
-
". This error is likely caused by a bug in React. Please file an issue."
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
790
+
);
791
+
if(1!==owner.tag)
792
+
throwError(
793
+
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
805
+
type,
806
+
stringRef
807
+
),
808
+
(didWarnAboutStringRefs[type]=!0));
809
+
owner=owner.stateNode;
810
+
if(!owner)
811
+
throwError(
812
+
"Missing owner for string ref "+
813
+
stringRef+
814
+
". This error is likely caused by a bug in React. Please file an issue."
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
779
-
);
780
-
if(1!==owner.tag)
781
-
throwError(
782
-
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
794
-
type,
795
-
stringRef
796
-
),
797
-
(didWarnAboutStringRefs[type]=!0));
798
-
owner=owner.stateNode;
799
-
if(!owner)
800
-
throwError(
801
-
"Missing owner for string ref "+
802
-
stringRef+
803
-
". This error is likely caused by a bug in React. Please file an issue."
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
787
+
);
788
+
if(1!==owner.tag)
789
+
throwError(
790
+
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
802
+
type,
803
+
stringRef
804
+
),
805
+
(didWarnAboutStringRefs[type]=!0));
806
+
owner=owner.stateNode;
807
+
if(!owner)
808
+
throwError(
809
+
"Missing owner for string ref "+
810
+
stringRef+
811
+
". This error is likely caused by a bug in React. Please file an issue."
0 commit comments