@samitouri / QOS-React / commits / eb3ad065a1

Feature flag: enableSiblingPrerendering (#30761)

Adds a new feature flag for an upcoming experiment. No implementation yet.

Andrew Clark committed Aug 22, 2024 at 10:17 UTC eb3ad065a10e542eb501bcb7dba7f9617e8c363e
9 files changed +10
packages/shared/ReactFeatureFlags.js
+2
@@ -148,6 +148,8 @@ export const enableOwnerStacks = __EXPERIMENTAL__;
148
149 export const enableShallowPropDiffing = false;
150
151 +export const enableSiblingPrerendering = __EXPERIMENTAL__;
152 +
153 /**
154 * Enables an expiration time for retry lanes to avoid starvation.
155 */
packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js
+1
@@ -25,3 +25,4 @@ export const enableShallowPropDiffing = __VARIANT__;
25 export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
26 export const enableFabricCompleteRootInCommitPhase = __VARIANT__;
27 export const enableLazyContextPropagation = __VARIANT__;
28 +export const enableSiblingPrerendering = __VARIANT__;
packages/shared/forks/ReactFeatureFlags.native-fb.js
+1
@@ -27,6 +27,7 @@ export const {
27 enableShallowPropDiffing,
28 passChildrenWhenCloningPersistedNodes,
29 enableLazyContextPropagation,
30 + enableSiblingPrerendering,
31 } = dynamicFlags;
32
33 // The rest of the flags are static for better dead code elimination.
packages/shared/forks/ReactFeatureFlags.native-oss.js
+1
@@ -84,6 +84,7 @@ export const retryLaneExpirationMs = 5000;
84 export const syncLaneExpirationMs = 250;
85 export const transitionLaneExpirationMs = 5000;
86 export const useModernStrictMode = true;
87 +export const enableSiblingPrerendering = false;
88
89 // Profiling Only
90 export const enableProfilerTimer = __PROFILE__;
packages/shared/forks/ReactFeatureFlags.test-renderer.js
+1
@@ -80,6 +80,7 @@ export const enableAddPropertiesFastPath = false;
80
81 export const renameElementSymbol = true;
82 export const enableShallowPropDiffing = false;
83 +export const enableSiblingPrerendering = __EXPERIMENTAL__;
84
85 // TODO: This must be in sync with the main ReactFeatureFlags file because
86 // the Test Renderer's value must be the same as the one used by the
packages/shared/forks/ReactFeatureFlags.test-renderer.native-fb.js
+1
@@ -80,6 +80,7 @@ export const syncLaneExpirationMs = 250;
80 export const transitionLaneExpirationMs = 5000;
81 export const useModernStrictMode = true;
82 export const enableFabricCompleteRootInCommitPhase = false;
83 +export const enableSiblingPrerendering = false;
84
85 // Flow magic to verify the exports of this file match the original version.
86 ((((null: any): ExportsType): FeatureFlagsType): ExportsType);
packages/shared/forks/ReactFeatureFlags.test-renderer.www.js
+1
@@ -94,6 +94,7 @@ export const renameElementSymbol = false;
94 export const enableObjectFiber = false;
95 export const enableOwnerStacks = false;
96 export const enableShallowPropDiffing = false;
97 +export const enableSiblingPrerendering = false;
98
99 // Flow magic to verify the exports of this file match the original version.
100 ((((null: any): ExportsType): FeatureFlagsType): ExportsType);
packages/shared/forks/ReactFeatureFlags.www-dynamic.js
+1
@@ -41,6 +41,7 @@ export const enableDebugTracing = __EXPERIMENTAL__;
41 export const enableSchedulingProfiler = __VARIANT__;
42
43 export const enableInfiniteRenderLoopDetection = __VARIANT__;
44 +export const enableSiblingPrerendering = __VARIANT__;
45
46 // TODO: These flags are hard-coded to the default values used in open source.
47 // Update the tests so that they pass in either mode, then set these
packages/shared/forks/ReactFeatureFlags.www.js
+1
@@ -35,6 +35,7 @@ export const {
35 retryLaneExpirationMs,
36 syncLaneExpirationMs,
37 transitionLaneExpirationMs,
38 + enableSiblingPrerendering,
39 } = dynamicFeatureFlags;
40
41 // On WWW, __EXPERIMENTAL__ is used for a new modern build.