2015-12-01 11:31:31 +08:00
|
|
|
/**
|
2017-09-25 04:48:13 +08:00
|
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
2015-12-01 11:31:31 +08:00
|
|
|
*
|
2017-09-25 04:48:13 +08:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-12-01 11:31:31 +08:00
|
|
|
*
|
2016-06-24 00:16:37 +08:00
|
|
|
* @flow
|
2015-12-01 11:31:31 +08:00
|
|
|
*/
|
|
|
|
|
|
2017-11-07 00:07:08 +08:00
|
|
|
import invariant from 'fbjs/lib/invariant';
|
|
|
|
|
|
2017-11-06 22:14:48 +08:00
|
|
|
export const enableAsyncSubtreeAPI = true;
|
|
|
|
|
export const enableAsyncSchedulingByDefaultInReactDOM = false;
|
|
|
|
|
// Exports React.Fragment
|
|
|
|
|
export const enableReactFragment = false;
|
|
|
|
|
// Exports ReactDOM.createRoot
|
|
|
|
|
export const enableCreateRoot = false;
|
2017-11-07 00:07:08 +08:00
|
|
|
export const enableUserTimingAPI = __DEV__;
|
2017-10-19 01:40:52 +08:00
|
|
|
|
2017-11-06 22:14:48 +08:00
|
|
|
// Mutating mode (React DOM, React ART, React Native):
|
|
|
|
|
export const enableMutatingReconciler = true;
|
|
|
|
|
// Experimental noop mode (currently unused):
|
|
|
|
|
export const enableNoopReconciler = false;
|
|
|
|
|
// Experimental persistent mode (CS):
|
|
|
|
|
export const enablePersistentReconciler = false;
|
2017-11-07 00:07:08 +08:00
|
|
|
|
|
|
|
|
// Only used in www builds.
|
|
|
|
|
export function addUserTimingListener() {
|
|
|
|
|
invariant(false, 'Not implemented.');
|
|
|
|
|
}
|