Skip to content

Commit 9a52ad9

Browse files
authored
[Fizz] Remove globals from external runtime (facebook#33065)
We never emit any inline functions when we use external runtime so this global shouldn't be needed.
1 parent fa8e3a2 commit 9a52ad9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/react-dom-bindings/src/server/ReactDOMServerExternalRuntime.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ import {
1414
completeSegment,
1515
} from './fizz-instruction-set/ReactDOMFizzInstructionSetExternalRuntime';
1616

17-
if (!window.$RC) {
18-
// TODO: Eventually remove, we currently need to set these globals for
19-
// compatibility with ReactDOMFizzInstructionSet
20-
window.$RC = completeBoundary;
21-
window.$RM = new Map();
22-
}
23-
2417
if (document.body != null) {
2518
if (document.readyState === 'loading') {
2619
installFizzInstrObserver(document.body);

0 commit comments

Comments
 (0)