[Fizz] Remove globals from external runtime (#33065)
We never emit any inline functions when we use external runtime so this global shouldn't be needed.
Sebastian Markbåge committed
Apr 30, 2025 at 14:21 UTC
9a52ad9fd9c6211d056942a455435c2804869854
1 file changed
-7
packages/react-dom-bindings/src/server/ReactDOMServerExternalRuntime.js
-7
@@ -14,13 +14,6 @@ import {
14
completeSegment,
15
} from './fizz-instruction-set/ReactDOMFizzInstructionSetExternalRuntime';
16
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
-
17
if (document.body != null) {
18
if (document.readyState === 'loading') {
19
installFizzInstrObserver(document.body);