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
{{ message }}
Repository navigation
Commit b618bbb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,6 @@ import {
124
124
import{
125
125
enableCreateEventHandleAPI,
126
126
enableScopeAPI,
127
-
enableTrustedTypesIntegration,
128
127
disableLegacyMode,
129
128
enableMoveBefore,
130
129
disableCommentsAsDOMContainers,
@@ -574,7 +573,6 @@ export function createInstance(
574
573
constdiv=ownerDocument.createElement('div');
575
574
if(__DEV__){
576
575
if(
577
-
enableTrustedTypesIntegration&&
578
576
!didWarnScriptTags&&
579
577
// Data block scripts are not executed by UAs anyway so
580
578
// we don't need to warn: https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type
'Encountered a script tag while rendering React component. '+
608
-
'Scripts inside React components are never executed when rendering on the client. '+
609
-
'Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\n'+
610
-
' in script (at **)',
611
-
]
612
-
: []),
605
+
'Encountered a script tag while rendering React component. '+
606
+
'Scripts inside React components are never executed when rendering on the client. '+
607
+
'Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\n'+
608
+
' in script (at **)',
613
609
]);
614
610
615
611
root.render(
@@ -2753,14 +2749,10 @@ body {
2753
2749
'> <script itemProp="foo">\n'+
2754
2750
'\n'+
2755
2751
' in script (at **)',
2756
-
...(gate('enableTrustedTypesIntegration')
2757
-
? [
2758
-
'Encountered a script tag while rendering React component. '+
2759
-
'Scripts inside React components are never executed when rendering on the client. '+
2760
-
'Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\n'+
2761
-
' in script (at **)',
2762
-
]
2763
-
: []),
2752
+
'Encountered a script tag while rendering React component. '+
2753
+
'Scripts inside React components are never executed when rendering on the client. '+
2754
+
'Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\n'+
'Encountered a script tag while rendering React component. '+
184
-
'Scripts inside React components are never executed when rendering on the client. '+
185
-
'Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\n'+
186
-
' in script (at **)\n'+
187
-
' in TogglingComponent (at **)',
188
-
]);
189
-
}
181
+
assertConsoleErrorDev([
182
+
'Encountered a script tag while rendering React component. '+
183
+
'Scripts inside React components are never executed when rendering on the client. '+
184
+
'Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\n'+
0 commit comments