Skip to content

Commit 56571de

Browse files
yungstersAndyPengc12
authored andcommitted
Dynamic enableComponentStackLocations Flag for React Native (FB) (facebook#28400)
## Summary Changes the `enableComponentStackLocations` feature flag to be dynamic for React Native (FB), so that it can be evaluated for compatibility before eventually being enabled for React Native. ## How did you test this change? I'll be importing this PR to test it.
1 parent 93c918a commit 56571de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import typeof * as DynamicFlagsType from 'ReactNativeInternalFeatureFlags';
2121
// update the test configuration.
2222

2323
export const alwaysThrottleRetries = __VARIANT__;
24+
export const enableComponentStackLocations = __VARIANT__;
2425
export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
2526
export const enableUseRefAccessWarning = __VARIANT__;
2627
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import * as dynamicFlags from 'ReactNativeInternalFeatureFlags';
1919
// the exports object every time a flag is read.
2020
export const {
2121
alwaysThrottleRetries,
22+
enableComponentStackLocations,
2223
enableDeferRootSchedulingToMicrotask,
2324
enableUseRefAccessWarning,
2425
passChildrenWhenCloningPersistedNodes,
@@ -62,7 +63,6 @@ export const enableCPUSuspense = true;
6263
export const enableUseMemoCacheHook = true;
6364
export const enableUseEffectEventHook = false;
6465
export const enableClientRenderFallbackOnTextMismatch = true;
65-
export const enableComponentStackLocations = false;
6666
export const enableLegacyFBSupport = false;
6767
export const enableFilterEmptyStringAttributesDOM = true;
6868
export const enableGetInspectorDataForInstanceInProduction = true;

0 commit comments

Comments
 (0)