Skip to content

Commit 425f72b

Browse files
authored
Align React Native OSS/Test Feature Flags (#28677)
## Summary Makes a few changes to align React Native feature flags for open source and internal test renderer configurations. * Enable `enableSchedulingProfiler` for profiling builds. * Align `ReactFeatureFlags.test-renderer.native.js` (with `ReactFeatureFlags.native-fb.js`). * Enable `enableUseMemoCacheHook`. * Enable `enableFizzExternalRuntime`. * Disable `alwaysThrottleRetries`. ## How did you test this change? Ran the following successfully: ``` $ yarn test $ yarn flow native $ yarn flow fabric ```
1 parent 23b32d3 commit 425f72b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/shared/forks/ReactFeatureFlags.native-oss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;
7070
export const enableCPUSuspense = false;
7171
export const enableDebugTracing = false;
7272
export const enableAsyncDebugInfo = false;
73-
export const enableSchedulingProfiler = false;
73+
export const enableSchedulingProfiler = __PROFILE__;
7474
export const enableLegacyCache = false;
7575
export const enableFetchInstrumentation = false;
7676
export const enablePostpone = false;

packages/shared/forks/ReactFeatureFlags.test-renderer.native.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import typeof * as ExportsType from './ReactFeatureFlags.test-renderer';
1313
export const debugRenderPhaseSideEffectsForStrictMode = false;
1414
export const enableDebugTracing = false;
1515
export const enableAsyncDebugInfo = false;
16-
export const enableSchedulingProfiler = false;
16+
export const enableSchedulingProfiler = __PROFILE__;
1717
export const enableProfilerTimer = __PROFILE__;
1818
export const enableProfilerCommitHooks = __PROFILE__;
1919
export const enableProfilerNestedUpdatePhase = __PROFILE__;
@@ -40,7 +40,7 @@ export const enableFilterEmptyStringAttributesDOM = true;
4040
export const enableGetInspectorDataForInstanceInProduction = false;
4141
export const enableSuspenseAvoidThisFallback = false;
4242
export const enableSuspenseAvoidThisFallbackFizz = false;
43-
export const enableCPUSuspense = false;
43+
export const enableCPUSuspense = true;
4444
export const enableUseMemoCacheHook = true;
4545
export const enableUseEffectEventHook = false;
4646
export const favorSafetyOverHydrationPerf = true;
@@ -67,11 +67,12 @@ export const enableTransitionTracing = false;
6767

6868
export const useModernStrictMode = false;
6969
export const enableDO_NOT_USE_disableStrictPassiveEffect = false;
70+
export const enableFizzExternalRuntime = true;
7071
export const enableDeferRootSchedulingToMicrotask = false;
7172

7273
export const enableAsyncActions = true;
7374

74-
export const alwaysThrottleRetries = true;
75+
export const alwaysThrottleRetries = false;
7576

7677
export const passChildrenWhenCloningPersistedNodes = false;
7778
export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;

0 commit comments

Comments
 (0)