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.
This commit is contained in:
Timothy Yung
2024-02-22 15:40:12 -08:00
committed by GitHub
parent 07c2543e54
commit 25dbb3556e
2 changed files with 2 additions and 1 deletions
@@ -21,6 +21,7 @@ import typeof * as DynamicFlagsType from 'ReactNativeInternalFeatureFlags';
// update the test configuration.
export const alwaysThrottleRetries = __VARIANT__;
export const enableComponentStackLocations = __VARIANT__;
export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
export const enableUseRefAccessWarning = __VARIANT__;
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
@@ -19,6 +19,7 @@ import * as dynamicFlags from 'ReactNativeInternalFeatureFlags';
// the exports object every time a flag is read.
export const {
alwaysThrottleRetries,
enableComponentStackLocations,
enableDeferRootSchedulingToMicrotask,
enableUseRefAccessWarning,
passChildrenWhenCloningPersistedNodes,
@@ -62,7 +63,6 @@ export const enableCPUSuspense = true;
export const enableUseMemoCacheHook = true;
export const enableUseEffectEventHook = false;
export const enableClientRenderFallbackOnTextMismatch = true;
export const enableComponentStackLocations = false;
export const enableLegacyFBSupport = false;
export const enableFilterEmptyStringAttributesDOM = true;
export const enableGetInspectorDataForInstanceInProduction = true;