Skip to content

Commit eb3ad06

Browse files
authored
Feature flag: enableSiblingPrerendering (#30761)
Adds a new feature flag for an upcoming experiment. No implementation yet.
1 parent 985747f commit eb3ad06

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
@@ -148,6 +148,8 @@ export const enableOwnerStacks = __EXPERIMENTAL__;
148148

149149
export const enableShallowPropDiffing = false;
150150

151+
export const enableSiblingPrerendering = __EXPERIMENTAL__;
152+
151153
/**
152154
* Enables an expiration time for retry lanes to avoid starvation.
153155
*/

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ export const enableShallowPropDiffing = __VARIANT__;
2525
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
2626
export const enableFabricCompleteRootInCommitPhase = __VARIANT__;
2727
export const enableLazyContextPropagation = __VARIANT__;
28+
export const enableSiblingPrerendering = __VARIANT__;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const {
2727
enableShallowPropDiffing,
2828
passChildrenWhenCloningPersistedNodes,
2929
enableLazyContextPropagation,
30+
enableSiblingPrerendering,
3031
} = dynamicFlags;
3132

3233
// 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
@@ -84,6 +84,7 @@ export const retryLaneExpirationMs = 5000;
8484
export const syncLaneExpirationMs = 250;
8585
export const transitionLaneExpirationMs = 5000;
8686
export const useModernStrictMode = true;
87+
export const enableSiblingPrerendering = false;
8788

8889
// Profiling Only
8990
export const enableProfilerTimer = __PROFILE__;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export const enableAddPropertiesFastPath = false;
8080

8181
export const renameElementSymbol = true;
8282
export const enableShallowPropDiffing = false;
83+
export const enableSiblingPrerendering = __EXPERIMENTAL__;
8384

8485
// TODO: This must be in sync with the main ReactFeatureFlags file because
8586
// the Test Renderer's value must be the same as the one used by the

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export const syncLaneExpirationMs = 250;
8080
export const transitionLaneExpirationMs = 5000;
8181
export const useModernStrictMode = true;
8282
export const enableFabricCompleteRootInCommitPhase = false;
83+
export const enableSiblingPrerendering = false;
8384

8485
// Flow magic to verify the exports of this file match the original version.
8586
((((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
@@ -94,6 +94,7 @@ export const renameElementSymbol = false;
9494
export const enableObjectFiber = false;
9595
export const enableOwnerStacks = false;
9696
export const enableShallowPropDiffing = false;
97+
export const enableSiblingPrerendering = false;
9798

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

packages/shared/forks/ReactFeatureFlags.www-dynamic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const enableDebugTracing = __EXPERIMENTAL__;
4141
export const enableSchedulingProfiler = __VARIANT__;
4242

4343
export const enableInfiniteRenderLoopDetection = __VARIANT__;
44+
export const enableSiblingPrerendering = __VARIANT__;
4445

4546
// TODO: These flags are hard-coded to the default values used in open source.
4647
// Update the tests so that they pass in either mode, then set these

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const {
3535
retryLaneExpirationMs,
3636
syncLaneExpirationMs,
3737
transitionLaneExpirationMs,
38+
enableSiblingPrerendering,
3839
} = dynamicFeatureFlags;
3940

4041
// On WWW, __EXPERIMENTAL__ is used for a new modern build.

0 commit comments

Comments
 (0)