mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Use dynamic flag in test renderer in www (#15662)
Uses a dynamic flag in www's test renderer build so we can condtionally disable the passive effects bugfix. Matches the dynamic flag used in the www React DOM build.
This commit is contained in:
@@ -12,6 +12,9 @@ import invariant from 'shared/invariant';
|
||||
import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags';
|
||||
import typeof * as PersistentFeatureFlagsType from './ReactFeatureFlags.persistent';
|
||||
|
||||
// Re-export dynamic flags from the www version.
|
||||
export const {revertPassiveEffectsChange} = require('ReactFeatureFlags');
|
||||
|
||||
export const debugRenderPhaseSideEffects = false;
|
||||
export const debugRenderPhaseSideEffectsForStrictMode = false;
|
||||
export const enableUserTimingAPI = __DEV__;
|
||||
@@ -27,7 +30,6 @@ export const disableJavaScriptURLs = false;
|
||||
export const disableYielding = false;
|
||||
export const enableEventAPI = true;
|
||||
export const enableJSXTransformAPI = true;
|
||||
export const revertPassiveEffectsChange = false;
|
||||
|
||||
// Only used in www builds.
|
||||
export function addUserTimingListener() {
|
||||
|
||||
Reference in New Issue
Block a user