|
| 1 | +/** |
| 2 | + * Copyright (c) 2013-present, Facebook, Inc. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + * |
| 7 | + * @flow |
| 8 | + */ |
| 9 | + |
| 10 | +import invariant from 'fbjs/lib/invariant'; |
| 11 | + |
| 12 | +import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags'; |
| 13 | +import typeof * as PersistentFeatureFlagsType from './ReactFeatureFlags.persistent'; |
| 14 | + |
| 15 | +export const debugRenderPhaseSideEffects = false; |
| 16 | +export const debugRenderPhaseSideEffectsForStrictMode = false; |
| 17 | +export const enableCreateRoot = false; |
| 18 | +export const enableUserTimingAPI = __DEV__; |
| 19 | +export const warnAboutDeprecatedLifecycles = false; |
| 20 | + |
| 21 | +// react-reconciler/persistent entry point |
| 22 | +// uses a persistent reconciler. |
| 23 | +export const enableMutatingReconciler = false; |
| 24 | +export const enableNoopReconciler = false; |
| 25 | +export const enablePersistentReconciler = true; |
| 26 | + |
| 27 | +// Only used in www builds. |
| 28 | +export function addUserTimingListener() { |
| 29 | + invariant(false, 'Not implemented.'); |
| 30 | +} |
| 31 | + |
| 32 | +// Flow magic to verify the exports of this file match the original version. |
| 33 | +// eslint-disable-next-line no-unused-vars |
| 34 | +type Check<_X, Y: _X, X: Y = _X> = null; |
| 35 | +// eslint-disable-next-line no-unused-expressions |
| 36 | +(null: Check<PersistentFeatureFlagsType, FeatureFlagsType>); |
0 commit comments