Skip to content

Commit 5b8f62e

Browse files
rubennortemeta-codesync[bot]
authored andcommitted
Remove globals defined for the React renderer that are now unused (react#58454)
Summary: Pull Request resolved: react#58454 The OSS renderer has been upgraded and it's no longer consuming these globals. Changelog: [internal] Reviewed By: christophpurrer Differential Revision: D119498576
1 parent 56cc670 commit 5b8f62e

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

packages/react-native/Libraries/Core/setUpTimers.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ if (__DEV__) {
2020

2121
// In bridgeless mode, timers are host functions installed from cpp.
2222
if (global.RN$Bridgeless === true) {
23-
// This is the flag that tells React to use `queueMicrotask` to batch state
24-
// updates, instead of using the scheduler to schedule a regular task.
25-
// We use a global variable because we don't currently have any other
26-
// mechanism to pass feature flags from RN to React in OSS.
27-
global.RN$enableMicrotasksInReact = true;
28-
2923
polyfillGlobal(
3024
'queueMicrotask',
3125
() =>

packages/react-native/src/private/setup/setUpDOM.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,4 @@ export default function setUpDOM() {
9595
'CustomEvent',
9696
() => require('../webapis/dom/events/CustomEvent').default,
9797
);
98-
99-
// Expose a global function that the React renderer can call to check
100-
// if EventTarget-based event dispatching is enabled.
101-
// We use a global function because we don't have another mechanism to pass
102-
// feature flags from RN to React in OSS (similar to RN$enableMicrotasksInReact
103-
// in setUpTimers.js).
104-
global.RN$isNativeEventTargetEventDispatchingEnabled = () =>
105-
require('../featureflags/ReactNativeFeatureFlags').enableNativeEventTargetEventDispatching();
10698
}

0 commit comments

Comments
 (0)