@samitouri / QOS-React-1 / commits / 88959fd54a

Revert "Set disableLegacyMode to true for www" (#29901)

Reverts facebook/react#29871 Just temporarily while we're investigating something.

Jan Kassens committed Jun 14, 2024 at 15:27 UTC 88959fd54af7d418b799a9898b921f32a356b212
2 files changed +3 -1
packages/shared/forks/ReactFeatureFlags.www-dynamic.js
+1
@@ -32,6 +32,7 @@ export const retryLaneExpirationMs = 5000;
32 export const syncLaneExpirationMs = 250;
33 export const transitionLaneExpirationMs = 5000;
34 export const enableAddPropertiesFastPath = __VARIANT__;
35 +export const disableLegacyMode = __VARIANT__;
36
37 // Enable this flag to help with concurrent mode debugging.
38 // It logs information to the console about React scheduling, rendering, and commit phases.
packages/shared/forks/ReactFeatureFlags.www.js
+2 -1
@@ -119,7 +119,8 @@ export const useModernStrictMode = true;
119 // because JSX is an extremely hot path.
120 export const disableStringRefs = false;
121
122 -export const disableLegacyMode = true;
122 +export const disableLegacyMode: boolean =
123 + __EXPERIMENTAL__ || dynamicFeatureFlags.disableLegacyMode;
124
125 export const enableOwnerStacks = false;
126 export const enableShallowPropDiffing = false;