Skip to content

Commit 741626e

Browse files
author
Brian Vaughn
committed
Got rid of redundant DEV gating for feature flag
1 parent f1d4697 commit 741626e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const {
3434
enableTransitionEntanglement,
3535
enableDiscreteEventMicroTasks,
3636
bypassStrictEffectsModeDevWarningForFacebookOnly,
37+
enableStrictEffectsModeDevWarningForFacebookOnly,
3738
} = dynamicFeatureFlags;
3839

3940
// On WWW, __EXPERIMENTAL__ is used for a new modern build.
@@ -49,12 +50,6 @@ export const enableProfilerNestedUpdateScheduledHook =
4950
export const enableSchedulingProfiler =
5051
__PROFILE__ && dynamicFeatureFlags.enableSchedulingProfiler;
5152

52-
// Add extra __DEV__ conditional so that this warning can be removed from production builds.
53-
// After all, strict effects mode itself is only run in DEV mode.
54-
export const enableStrictEffectsModeDevWarningForFacebookOnly =
55-
__DEV__ &&
56-
dynamicFeatureFlags.enableStrictEffectsModeDevWarningForFacebookOnly;
57-
5853
// Note: we'll want to remove this when we to userland implementation.
5954
// For now, we'll turn it on for everyone because it's *already* on for everyone in practice.
6055
// At least this will let us stop shipping <Profiler> implementation to all users.

0 commit comments

Comments
 (0)