@samitouri / QOS-React / commits / b740af2510

Clean up flag to enable microtasks in RN (#37021)

## Summary Microtasks are enabled by default in RN already, so there's no need to gate their use in Fabric atm. ## How did you test this change? Existing tests. Tested e2e at Meta.

Rubén Norte committed Jul 15, 2026 at 13:21 UTC b740af2510de1e19fcb399abb862af26ff95ac80
4 files changed +1 -9
.eslintrc.js
-1
@@ -464,7 +464,6 @@ module.exports = {
464 files: ['packages/react-native-renderer/**/*.js'],
465 globals: {
466 nativeFabricUIManager: 'readonly',
467 - RN$enableMicrotasksInReact: 'readonly',
467 RN$isNativeEventTargetEventDispatchingEnabled: 'readonly',
468 },
469 },
packages/react-native-renderer/src/ReactFiberConfigFabric.js
+1 -3
@@ -947,9 +947,7 @@ export function resetFormInstance(form: Instance): void {}
947 // Microtasks
948 // -------------------
949
950 -export const supportsMicrotasks: boolean =
951 - typeof RN$enableMicrotasksInReact !== 'undefined' &&
952 - !!RN$enableMicrotasksInReact;
950 +export const supportsMicrotasks: boolean = true;
951
952 export const scheduleMicrotask: any =
953 typeof queueMicrotask === 'function' ? queueMicrotask : scheduleTimeout;
scripts/flow/react-native-host-hooks.js
-3
@@ -127,9 +127,6 @@ declare module 'react-native' {
127 declare export type MeasureOnSuccessCallback = __MeasureOnSuccessCallback;
128 }
129
130 -// eslint-disable-next-line no-unused-vars
131 -declare const RN$enableMicrotasksInReact: boolean;
132 -
130 // eslint-disable-next-line no-unused-vars
131 declare const RN$isNativeEventTargetEventDispatchingEnabled:
132 | (() => boolean)
scripts/rollup/validate/eslintrc.rn.js
-2
@@ -46,8 +46,6 @@ module.exports = {
46 // Fabric. See https://github.com/facebook/react/pull/15490
47 // for more information
48 nativeFabricUIManager: 'readonly',
49 - // RN flag to enable microtasks
50 - RN$enableMicrotasksInReact: 'readonly',
49 RN$isNativeEventTargetEventDispatchingEnabled: 'readonly',
50 // Trusted Types
51 trustedTypes: 'readonly',