Skip to content

Commit 91d7328

Browse files
committed
Add feature flag for passChildrenWhenCloningPersistedNodes
1 parent dddfe68 commit 91d7328

9 files changed

+10
-0
lines changed

packages/shared/ReactFeatureFlags.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ export const alwaysThrottleRetries = true;
124124

125125
export const useMicrotasksForSchedulingInFabric = false;
126126

127+
export const passChildrenWhenCloningPersistedNodes = false;
128+
127129
// -----------------------------------------------------------------------------
128130
// Chopping Block
129131
//

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const enableUseRefAccessWarning = __VARIANT__;
2424
export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
2525
export const alwaysThrottleRetries = __VARIANT__;
2626
export const useMicrotasksForSchedulingInFabric = __VARIANT__;
27+
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
2728

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const {
2222
enableDeferRootSchedulingToMicrotask,
2323
alwaysThrottleRetries,
2424
useMicrotasksForSchedulingInFabric,
25+
passChildrenWhenCloningPersistedNodes,
2526
} = dynamicFlags;
2627

2728
// The rest of the flags are static for better dead code elimination.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const enableAsyncActions = false;
7979
export const alwaysThrottleRetries = true;
8080

8181
export const useMicrotasksForSchedulingInFabric = false;
82+
export const passChildrenWhenCloningPersistedNodes = false;
8283

8384
// Flow magic to verify the exports of this file match the original version.
8485
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const enableAsyncActions = true;
7979
export const alwaysThrottleRetries = true;
8080

8181
export const useMicrotasksForSchedulingInFabric = false;
82+
export const passChildrenWhenCloningPersistedNodes = false;
8283

8384
// Flow magic to verify the exports of this file match the original version.
8485
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const enableAsyncActions = true;
7676
export const alwaysThrottleRetries = true;
7777

7878
export const useMicrotasksForSchedulingInFabric = false;
79+
export const passChildrenWhenCloningPersistedNodes = false;
7980

8081
// Flow magic to verify the exports of this file match the original version.
8182
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const enableAsyncActions = true;
7979
export const alwaysThrottleRetries = true;
8080

8181
export const useMicrotasksForSchedulingInFabric = false;
82+
export const passChildrenWhenCloningPersistedNodes = false;
8283

8384
// Flow magic to verify the exports of this file match the original version.
8485
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export const enableFizzExternalRuntime = true;
110110
export const forceConcurrentByDefaultForTesting = false;
111111

112112
export const useMicrotasksForSchedulingInFabric = false;
113+
export const passChildrenWhenCloningPersistedNodes = false;
113114

114115
// Flow magic to verify the exports of this file match the original version.
115116
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

scripts/flow/xplat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ declare module 'ReactNativeInternalFeatureFlags' {
1212
declare export var enableDeferRootSchedulingToMicrotask: boolean;
1313
declare export var alwaysThrottleRetries: boolean;
1414
declare export var useMicrotasksForSchedulingInFabric: boolean;
15+
declare export var passChildrenWhenCloningPersistedNodes: boolean;
1516
}

0 commit comments

Comments
 (0)