Skip to content

Commit 84cb3b4

Browse files
authored
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.
1 parent 2243b40 commit 84cb3b4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// Use __VARIANT__ to simulate a GK. The tests will be run twice: once
1414
// with the __VARIANT__ set to `true`, and once set to `false`.
1515

16-
export const disableIEWorkarounds = __VARIANT__;
1716
export const disableSchedulerTimeoutInWorkLoop = __VARIANT__;
1817
export const enableLazyContextPropagation = __VARIANT__;
1918
export const forceConcurrentByDefaultForTesting = __VARIANT__;

packages/shared/forks/ReactFeatureFlags.www.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import typeof * as DynamicFeatureFlags from './ReactFeatureFlags.www-dynamic';
1515
const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
1616

1717
export const {
18-
disableIEWorkarounds,
1918
enableTrustedTypesIntegration,
2019
enableDebugTracing,
2120
enableLazyContextPropagation,
@@ -49,6 +48,7 @@ export const enableUpdaterTracking = __PROFILE__;
4948
export const enableSuspenseAvoidThisFallback = true;
5049
export const enableSuspenseAvoidThisFallbackFizz = false;
5150

51+
export const disableIEWorkarounds = true;
5252
export const enableCPUSuspense = true;
5353
export const enableUseMemoCacheHook = true;
5454
export const enableUseEffectEventHook = true;

scripts/jest/setupTests.www.js

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jest.mock('shared/ReactFeatureFlags', () => {
1515
// code live.
1616
actual.disableInputAttributeSyncing = __VARIANT__;
1717

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+
1823
return actual;
1924
});
2025

0 commit comments

Comments
 (0)