@samitouri / QOS-React-1 / commits / 98b8359f65

[RN] Move unifiedSyncLane back to dynamic (#28430)

This surfaced a bug because it wasn't on everywhere, moving back to dynamic while we investigate the bug

Ricky committed Feb 23, 2024 at 10:31 UTC 98b8359f656ef714cc44828d7bfd2409ca16b9b3
3 files changed +3 -1
packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js
+1
@@ -26,6 +26,7 @@ export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
26 export const enableUseRefAccessWarning = __VARIANT__;
27 export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
28 export const useMicrotasksForSchedulingInFabric = __VARIANT__;
29 +export const enableUnifiedSyncLane = __VARIANT__;
30
31 // Flow magic to verify the exports of this file match the original version.
32 ((((null: any): ExportsType): DynamicFlagsType): ExportsType);
packages/shared/forks/ReactFeatureFlags.native-fb.js
+1 -1
@@ -24,6 +24,7 @@ export const {
24 enableUseRefAccessWarning,
25 passChildrenWhenCloningPersistedNodes,
26 useMicrotasksForSchedulingInFabric,
27 + enableUnifiedSyncLane,
28 } = dynamicFlags;
29
30 // The rest of the flags are static for better dead code elimination.
@@ -51,7 +52,6 @@ export const disableInputAttributeSyncing = false;
52 export const disableIEWorkarounds = true;
53 export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
54 export const enableScopeAPI = false;
54 -export const enableUnifiedSyncLane = true;
55 export const enableCreateEventHandleAPI = false;
56 export const enableSuspenseCallback = false;
57 export const disableLegacyContext = false;
scripts/flow/xplat.js
+1
@@ -14,4 +14,5 @@ declare module 'ReactNativeInternalFeatureFlags' {
14 declare export var enableUseRefAccessWarning: boolean;
15 declare export var passChildrenWhenCloningPersistedNodes: boolean;
16 declare export var useMicrotasksForSchedulingInFabric: boolean;
17 + declare export var enableUnifiedSyncLane: boolean;
18 }