Dynamic `enableComponentStackLocations` Flag for React Native (FB) (#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.
Timothy Yung committed
Feb 22, 2024 at 15:40 UTC
25dbb3556ee9802c18f45c278abf3c33711237eb
2 files changed
+2
-1
packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js
+1
@@ -21,6 +21,7 @@ import typeof * as DynamicFlagsType from 'ReactNativeInternalFeatureFlags';
21
// update the test configuration.
22
23
export const alwaysThrottleRetries = __VARIANT__;
24
+export const enableComponentStackLocations = __VARIANT__;
25
export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
26
export const enableUseRefAccessWarning = __VARIANT__;
27
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
packages/shared/forks/ReactFeatureFlags.native-fb.js
+1
-1
@@ -19,6 +19,7 @@ import * as dynamicFlags from 'ReactNativeInternalFeatureFlags';
19
// the exports object every time a flag is read.
20
export const {
21
alwaysThrottleRetries,
22
+ enableComponentStackLocations,
23
enableDeferRootSchedulingToMicrotask,
24
enableUseRefAccessWarning,
25
passChildrenWhenCloningPersistedNodes,
@@ -62,7 +63,6 @@ export const enableCPUSuspense = true;
63
export const enableUseMemoCacheHook = true;
64
export const enableUseEffectEventHook = false;
65
export const enableClientRenderFallbackOnTextMismatch = true;
65
-export const enableComponentStackLocations = false;
66
export const enableLegacyFBSupport = false;
67
export const enableFilterEmptyStringAttributesDOM = true;
68
export const enableGetInspectorDataForInstanceInProduction = true;