mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Feature flag: enableSiblingPrerendering (#30761)
Adds a new feature flag for an upcoming experiment. No implementation yet.
This commit is contained in:
parent
985747f810
commit
eb3ad065a1
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -25,3 +25,4 @@ export const enableShallowPropDiffing = __VARIANT__;
|
|||
export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
|
||||
export const enableFabricCompleteRootInCommitPhase = __VARIANT__;
|
||||
export const enableLazyContextPropagation = __VARIANT__;
|
||||
export const enableSiblingPrerendering = __VARIANT__;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ export const {
|
|||
enableShallowPropDiffing,
|
||||
passChildrenWhenCloningPersistedNodes,
|
||||
enableLazyContextPropagation,
|
||||
enableSiblingPrerendering,
|
||||
} = dynamicFlags;
|
||||
|
||||
// The rest of the flags are static for better dead code elimination.
|
||||
|
|
|
|||
|
|
@ -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__;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ export const {
|
|||
retryLaneExpirationMs,
|
||||
syncLaneExpirationMs,
|
||||
transitionLaneExpirationMs,
|
||||
enableSiblingPrerendering,
|
||||
} = dynamicFeatureFlags;
|
||||
|
||||
// On WWW, __EXPERIMENTAL__ is used for a new modern build.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user