diff --git a/packages/shared/ReactFeatureFlags.js b/packages/shared/ReactFeatureFlags.js index 5178f2c90ff7b..5ca0e6e291fcd 100644 --- a/packages/shared/ReactFeatureFlags.js +++ b/packages/shared/ReactFeatureFlags.js @@ -124,6 +124,8 @@ export const alwaysThrottleRetries = true; export const useMicrotasksForSchedulingInFabric = false; +export const passChildrenWhenCloningPersistedNodes = false; + // ----------------------------------------------------------------------------- // Chopping Block // diff --git a/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js b/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js index 7ef1ef3013f17..f2b6a5ae36d93 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js +++ b/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js @@ -24,6 +24,7 @@ export const enableUseRefAccessWarning = __VARIANT__; export const enableDeferRootSchedulingToMicrotask = __VARIANT__; export const alwaysThrottleRetries = __VARIANT__; export const useMicrotasksForSchedulingInFabric = __VARIANT__; +export const passChildrenWhenCloningPersistedNodes = __VARIANT__; // Flow magic to verify the exports of this file match the original version. ((((null: any): ExportsType): DynamicFlagsType): ExportsType); diff --git a/packages/shared/forks/ReactFeatureFlags.native-fb.js b/packages/shared/forks/ReactFeatureFlags.native-fb.js index 9b7b7f2f383f2..99d7392719256 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-fb.js +++ b/packages/shared/forks/ReactFeatureFlags.native-fb.js @@ -22,6 +22,7 @@ export const { enableDeferRootSchedulingToMicrotask, alwaysThrottleRetries, useMicrotasksForSchedulingInFabric, + passChildrenWhenCloningPersistedNodes, } = dynamicFlags; // The rest of the flags are static for better dead code elimination. diff --git a/packages/shared/forks/ReactFeatureFlags.native-oss.js b/packages/shared/forks/ReactFeatureFlags.native-oss.js index ebab18441223f..ee0b2d91d387c 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-oss.js +++ b/packages/shared/forks/ReactFeatureFlags.native-oss.js @@ -79,6 +79,7 @@ export const enableAsyncActions = false; export const alwaysThrottleRetries = true; export const useMicrotasksForSchedulingInFabric = false; +export const passChildrenWhenCloningPersistedNodes = false; // Flow magic to verify the exports of this file match the original version. ((((null: any): ExportsType): FeatureFlagsType): ExportsType); diff --git a/packages/shared/forks/ReactFeatureFlags.test-renderer.js b/packages/shared/forks/ReactFeatureFlags.test-renderer.js index 392c8cbb538b9..5d541fa3948ef 100644 --- a/packages/shared/forks/ReactFeatureFlags.test-renderer.js +++ b/packages/shared/forks/ReactFeatureFlags.test-renderer.js @@ -79,6 +79,7 @@ export const enableAsyncActions = true; export const alwaysThrottleRetries = true; export const useMicrotasksForSchedulingInFabric = false; +export const passChildrenWhenCloningPersistedNodes = false; // Flow magic to verify the exports of this file match the original version. ((((null: any): ExportsType): FeatureFlagsType): ExportsType); diff --git a/packages/shared/forks/ReactFeatureFlags.test-renderer.native.js b/packages/shared/forks/ReactFeatureFlags.test-renderer.native.js index b690f237b130b..23a44293eeb68 100644 --- a/packages/shared/forks/ReactFeatureFlags.test-renderer.native.js +++ b/packages/shared/forks/ReactFeatureFlags.test-renderer.native.js @@ -76,6 +76,7 @@ export const enableAsyncActions = true; export const alwaysThrottleRetries = true; export const useMicrotasksForSchedulingInFabric = false; +export const passChildrenWhenCloningPersistedNodes = false; // Flow magic to verify the exports of this file match the original version. ((((null: any): ExportsType): FeatureFlagsType): ExportsType); diff --git a/packages/shared/forks/ReactFeatureFlags.test-renderer.www.js b/packages/shared/forks/ReactFeatureFlags.test-renderer.www.js index e426ade2df12a..121442de9660d 100644 --- a/packages/shared/forks/ReactFeatureFlags.test-renderer.www.js +++ b/packages/shared/forks/ReactFeatureFlags.test-renderer.www.js @@ -79,6 +79,7 @@ export const enableAsyncActions = true; export const alwaysThrottleRetries = true; export const useMicrotasksForSchedulingInFabric = false; +export const passChildrenWhenCloningPersistedNodes = false; // Flow magic to verify the exports of this file match the original version. ((((null: any): ExportsType): FeatureFlagsType): ExportsType); diff --git a/packages/shared/forks/ReactFeatureFlags.www.js b/packages/shared/forks/ReactFeatureFlags.www.js index 16e6114e5153e..a004364fa4ab4 100644 --- a/packages/shared/forks/ReactFeatureFlags.www.js +++ b/packages/shared/forks/ReactFeatureFlags.www.js @@ -110,6 +110,7 @@ export const enableFizzExternalRuntime = true; export const forceConcurrentByDefaultForTesting = false; export const useMicrotasksForSchedulingInFabric = false; +export const passChildrenWhenCloningPersistedNodes = false; // Flow magic to verify the exports of this file match the original version. ((((null: any): ExportsType): FeatureFlagsType): ExportsType); diff --git a/scripts/flow/xplat.js b/scripts/flow/xplat.js index 889d76ea93371..86583241f6625 100644 --- a/scripts/flow/xplat.js +++ b/scripts/flow/xplat.js @@ -12,4 +12,5 @@ declare module 'ReactNativeInternalFeatureFlags' { declare export var enableDeferRootSchedulingToMicrotask: boolean; declare export var alwaysThrottleRetries: boolean; declare export var useMicrotasksForSchedulingInFabric: boolean; + declare export var passChildrenWhenCloningPersistedNodes: boolean; }