mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[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:
parent
fa8e3a251e
commit
9a52ad9fd9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user