46 lines
2.0 KiB
JavaScript
46 lines
2.0 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
*/
|
|
|
|
// In www, these flags are controlled by GKs. Because most GKs have some
|
|
// population running in either mode, we should run our tests that way, too,
|
|
//
|
|
// Use __VARIANT__ to simulate a GK. The tests will be run twice: once
|
|
// with the __VARIANT__ set to `true`, and once set to `false`.
|
|
|
|
export const warnAboutSpreadingKeyToJSX = __VARIANT__;
|
|
export const disableInputAttributeSyncing = __VARIANT__;
|
|
export const enableFilterEmptyStringAttributesDOM = __VARIANT__;
|
|
export const enableLegacyFBSupport = __VARIANT__;
|
|
export const decoupleUpdatePriorityFromScheduler = __VARIANT__;
|
|
|
|
// TODO: These features do not currently exist in the new reconciler fork.
|
|
export const enableDebugTracing = !__VARIANT__;
|
|
export const enableSchedulingProfiler = !__VARIANT__ && __PROFILE__;
|
|
|
|
// This only has an effect in the new reconciler. But also, the new reconciler
|
|
// is only enabled when __VARIANT__ is true. So this is set to the opposite of
|
|
// __VARIANT__ so that it's `false` when running against the new reconciler.
|
|
// Ideally we would test both against the new reconciler, but until then, we
|
|
// should test the value that is used in www. Which is `false`.
|
|
//
|
|
// Once Lanes has landed in both reconciler forks, we'll get coverage of
|
|
// both branches.
|
|
export const deferRenderPhaseUpdateToNextBatch = !__VARIANT__;
|
|
|
|
// These are already tested in both modes using the build type dimension,
|
|
// so we don't need to use __VARIANT__ to get extra coverage.
|
|
export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
|
|
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
|
|
|
|
// TODO: These flags are hard-coded to the default values used in open source.
|
|
// Update the tests so that they pass in either mode, then set these
|
|
// to __VARIANT__.
|
|
export const enableTrustedTypesIntegration = false;
|
|
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
|