Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca1a703

Browse files
authored
Make enableLegacyFBSupport flag dynamic for www (facebook#18551)
1 parent 8cbce05 commit ca1a703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export const enableComponentStackLocations = __VARIANT__;
1818
export const disableModulePatternComponents = __VARIANT__;
1919
export const disableInputAttributeSyncing = __VARIANT__;
2020
export const enableFilterEmptyStringAttributesDOM = __VARIANT__;
21+
export const enableModernEventSystem = __VARIANT__;
22+
export const enableLegacyFBSupport = __VARIANT__;
2123

2224
// These are already tested in both modes using the build type dimension,
2325
// so we don't need to use __VARIANT__ to get extra coverage.
@@ -29,4 +31,3 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
2931
// to __VARIANT__.
3032
export const enableTrustedTypesIntegration = false;
3133
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
32-
export const enableModernEventSystem = false;

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const {
2525
replayFailedUnitOfWorkWithInvokeGuardedCallback,
2626
enableModernEventSystem,
2727
enableFilterEmptyStringAttributesDOM,
28+
enableLegacyFBSupport,
2829
} = dynamicFeatureFlags;
2930

3031
// On WWW, __EXPERIMENTAL__ is used for a new modern build.
@@ -69,8 +70,6 @@ export const disableTextareaChildren = __EXPERIMENTAL__;
6970

7071
export const warnUnstableRenderSubtreeIntoContainer = false;
7172

72-
export const enableLegacyFBSupport = !__EXPERIMENTAL__;
73-
7473
// Internal-only attempt to debug a React Native issue. See D20130868.
7574
export const throwEarlyForMysteriousError = false;
7675

0 commit comments

Comments
 (0)