Skip to content

Commit 6ef1e22

Browse files
authored
Revert "Set disableLegacyMode to true for www (#29871)"
This reverts commit fb9a90f.
1 parent 3154ec8 commit 6ef1e22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const retryLaneExpirationMs = 5000;
3232
export const syncLaneExpirationMs = 250;
3333
export const transitionLaneExpirationMs = 5000;
3434
export const enableAddPropertiesFastPath = __VARIANT__;
35+
export const disableLegacyMode = __VARIANT__;
3536

3637
// Enable this flag to help with concurrent mode debugging.
3738
// It logs information to the console about React scheduling, rendering, and commit phases.

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ export const useModernStrictMode = true;
119119
// because JSX is an extremely hot path.
120120
export const disableStringRefs = false;
121121

122-
export const disableLegacyMode = true;
122+
export const disableLegacyMode: boolean =
123+
__EXPERIMENTAL__ || dynamicFeatureFlags.disableLegacyMode;
123124

124125
export const enableOwnerStacks = false;
125126
export const enableShallowPropDiffing = false;

0 commit comments

Comments
 (0)