Feature flag: enableSiblingPrerendering (#30761)

Adds a new feature flag for an upcoming experiment.

No implementation yet.
This commit is contained in:
Andrew Clark 2024-08-22 10:17:19 -04:00 committed by GitHub
parent 985747f810
commit eb3ad065a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 10 additions and 0 deletions

View File

@ -148,6 +148,8 @@ export const enableOwnerStacks = __EXPERIMENTAL__;
export const enableShallowPropDiffing = false;
export const enableSiblingPrerendering = __EXPERIMENTAL__;
/**
* Enables an expiration time for retry lanes to avoid starvation.
*/

View File

@ -25,3 +25,4 @@ export const enableShallowPropDiffing = __VARIANT__;
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
export const enableFabricCompleteRootInCommitPhase = __VARIANT__;
export const enableLazyContextPropagation = __VARIANT__;
export const enableSiblingPrerendering = __VARIANT__;

View File

@ -27,6 +27,7 @@ export const {
enableShallowPropDiffing,
passChildrenWhenCloningPersistedNodes,
enableLazyContextPropagation,
enableSiblingPrerendering,
} = dynamicFlags;
// The rest of the flags are static for better dead code elimination.

View File

@ -84,6 +84,7 @@ export const retryLaneExpirationMs = 5000;
export const syncLaneExpirationMs = 250;
export const transitionLaneExpirationMs = 5000;
export const useModernStrictMode = true;
export const enableSiblingPrerendering = false;
// Profiling Only
export const enableProfilerTimer = __PROFILE__;

View File

@ -80,6 +80,7 @@ export const enableAddPropertiesFastPath = false;
export const renameElementSymbol = true;
export const enableShallowPropDiffing = false;
export const enableSiblingPrerendering = __EXPERIMENTAL__;
// TODO: This must be in sync with the main ReactFeatureFlags file because
// the Test Renderer's value must be the same as the one used by the

View File

@ -80,6 +80,7 @@ export const syncLaneExpirationMs = 250;
export const transitionLaneExpirationMs = 5000;
export const useModernStrictMode = true;
export const enableFabricCompleteRootInCommitPhase = false;
export const enableSiblingPrerendering = false;
// Flow magic to verify the exports of this file match the original version.
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

View File

@ -94,6 +94,7 @@ export const renameElementSymbol = false;
export const enableObjectFiber = false;
export const enableOwnerStacks = false;
export const enableShallowPropDiffing = false;
export const enableSiblingPrerendering = false;
// Flow magic to verify the exports of this file match the original version.
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

View File

@ -41,6 +41,7 @@ export const enableDebugTracing = __EXPERIMENTAL__;
export const enableSchedulingProfiler = __VARIANT__;
export const enableInfiniteRenderLoopDetection = __VARIANT__;
export const enableSiblingPrerendering = __VARIANT__;
// TODO: These flags are hard-coded to the default values used in open source.
// Update the tests so that they pass in either mode, then set these

View File

@ -35,6 +35,7 @@ export const {
retryLaneExpirationMs,
syncLaneExpirationMs,
transitionLaneExpirationMs,
enableSiblingPrerendering,
} = dynamicFeatureFlags;
// On WWW, __EXPERIMENTAL__ is used for a new modern build.