Skip to content

Commit b8da12e

Browse files
authored
Add dynamic flag for infinite loop detection on React Native FB (#28456)
Add dynamic flag for infinite loop detection on React Native FB
1 parent fb10a2c commit b8da12e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const enableUseRefAccessWarning = __VARIANT__;
2727
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
2828
export const useMicrotasksForSchedulingInFabric = __VARIANT__;
2929
export const enableUnifiedSyncLane = __VARIANT__;
30+
export const enableInfiniteRenderLoopDetection = __VARIANT__;
3031

3132
// Flow magic to verify the exports of this file match the original version.
3233
((((null: any): ExportsType): DynamicFlagsType): ExportsType);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const {
2525
passChildrenWhenCloningPersistedNodes,
2626
useMicrotasksForSchedulingInFabric,
2727
enableUnifiedSyncLane,
28+
enableInfiniteRenderLoopDetection,
2829
} = dynamicFlags;
2930

3031
// The rest of the flags are static for better dead code elimination.
@@ -96,7 +97,6 @@ export const disableClientCache = true;
9697

9798
export const enableServerComponentKeys = true;
9899
export const enableServerComponentLogs = true;
99-
export const enableInfiniteRenderLoopDetection = false;
100100

101101
// TODO: Roll out with GK. Don't keep as dynamic flag for too long, though,
102102
// because JSX is an extremely hot path.

scripts/flow/xplat.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ declare module 'ReactNativeInternalFeatureFlags' {
1515
declare export var passChildrenWhenCloningPersistedNodes: boolean;
1616
declare export var useMicrotasksForSchedulingInFabric: boolean;
1717
declare export var enableUnifiedSyncLane: boolean;
18+
declare export var enableInfiniteRenderLoopDetection: boolean;
1819
}

0 commit comments

Comments
 (0)