@samitouri / QOS-React / commits / 84cb3b4cb2

Hardcode disableIEWorkarounds for www (#28811)

This has landed and is true everywhere, but let's keep the flag until it lands in the stable release.

Ricky committed Apr 10, 2024 at 11:14 UTC 84cb3b4cb250bd592f4eb9495e66b50d33c8cd1e
3 files changed +6 -2
packages/shared/forks/ReactFeatureFlags.www-dynamic.js
-1
@@ -13,7 +13,6 @@
13 // Use __VARIANT__ to simulate a GK. The tests will be run twice: once
14 // with the __VARIANT__ set to `true`, and once set to `false`.
15
16 -export const disableIEWorkarounds = __VARIANT__;
16 export const disableSchedulerTimeoutInWorkLoop = __VARIANT__;
17 export const enableLazyContextPropagation = __VARIANT__;
18 export const forceConcurrentByDefaultForTesting = __VARIANT__;
packages/shared/forks/ReactFeatureFlags.www.js
+1 -1
@@ -15,7 +15,6 @@ import typeof * as DynamicFeatureFlags from './ReactFeatureFlags.www-dynamic';
15 const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
16
17 export const {
18 - disableIEWorkarounds,
18 enableTrustedTypesIntegration,
19 enableDebugTracing,
20 enableLazyContextPropagation,
@@ -49,6 +48,7 @@ export const enableUpdaterTracking = __PROFILE__;
48 export const enableSuspenseAvoidThisFallback = true;
49 export const enableSuspenseAvoidThisFallbackFizz = false;
50
51 +export const disableIEWorkarounds = true;
52 export const enableCPUSuspense = true;
53 export const enableUseMemoCacheHook = true;
54 export const enableUseEffectEventHook = true;
scripts/jest/setupTests.www.js
+5
@@ -15,6 +15,11 @@ jest.mock('shared/ReactFeatureFlags', () => {
15 // code live.
16 actual.disableInputAttributeSyncing = __VARIANT__;
17
18 + // This is hardcoded to true for the next release,
19 + // but still run the tests against both variants until
20 + // we remove the flag.
21 + actual.disableIEWorkarounds = __VARIANT__;
22 +
23 return actual;
24 });
25