[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.
This commit is contained in:
Sebastian Markbåge 2025-04-30 14:21:14 -04:00 committed by GitHub
parent fa8e3a251e
commit 9a52ad9fd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,13 +14,6 @@ import {
completeSegment,
} from './fizz-instruction-set/ReactDOMFizzInstructionSetExternalRuntime';
if (!window.$RC) {
// TODO: Eventually remove, we currently need to set these globals for
// compatibility with ReactDOMFizzInstructionSet
window.$RC = completeBoundary;
window.$RM = new Map();
}
if (document.body != null) {
if (document.readyState === 'loading') {
installFizzInstrObserver(document.body);