2020-02-04 07:31:31 +08:00
|
|
|
/**
|
2022-10-18 23:19:24 +08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2020-02-04 07:31:31 +08:00
|
|
|
*
|
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
|
*
|
|
|
|
|
* @flow
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags';
|
2020-02-14 04:33:53 +08:00
|
|
|
import typeof * as ExportsType from './ReactFeatureFlags.testing';
|
2020-02-04 07:31:31 +08:00
|
|
|
|
|
|
|
|
export const debugRenderPhaseSideEffectsForStrictMode = false;
|
2020-04-16 10:10:15 +08:00
|
|
|
export const enableDebugTracing = false;
|
2022-01-20 00:20:42 +08:00
|
|
|
export const enableSchedulingProfiler = __PROFILE__;
|
2020-02-04 07:31:31 +08:00
|
|
|
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = false;
|
|
|
|
|
export const enableProfilerTimer = __PROFILE__;
|
2021-05-26 05:32:14 +08:00
|
|
|
export const enableProfilerCommitHooks = __PROFILE__;
|
|
|
|
|
export const enableProfilerNestedUpdatePhase = __PROFILE__;
|
2020-11-12 22:31:27 +08:00
|
|
|
export const enableProfilerNestedUpdateScheduledHook = false;
|
2021-04-09 22:34:33 +08:00
|
|
|
export const enableUpdaterTracking = false;
|
2021-11-17 05:27:10 +08:00
|
|
|
export const enableCache = __EXPERIMENTAL__;
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableLegacyCache = __EXPERIMENTAL__;
|
2022-03-21 11:41:02 +08:00
|
|
|
export const enableCacheElement = __EXPERIMENTAL__;
|
2022-10-20 06:37:00 +08:00
|
|
|
export const enableFetchInstrumentation = __EXPERIMENTAL__;
|
2020-02-04 07:31:31 +08:00
|
|
|
export const disableJavaScriptURLs = false;
|
2022-02-18 05:44:22 +08:00
|
|
|
export const disableCommentsAsDOMContainers = true;
|
2020-02-04 07:31:31 +08:00
|
|
|
export const disableInputAttributeSyncing = false;
|
|
|
|
|
export const enableSchedulerDebugging = false;
|
|
|
|
|
export const enableScopeAPI = false;
|
2020-05-13 02:01:12 +08:00
|
|
|
export const enableCreateEventHandleAPI = false;
|
2020-02-04 07:31:31 +08:00
|
|
|
export const enableSuspenseCallback = false;
|
|
|
|
|
export const disableLegacyContext = false;
|
|
|
|
|
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
|
|
|
|
|
export const enableTrustedTypesIntegration = false;
|
|
|
|
|
export const disableTextareaChildren = false;
|
2020-03-07 02:46:32 +08:00
|
|
|
export const disableModulePatternComponents = false;
|
2021-09-21 03:44:48 +08:00
|
|
|
export const enableSuspenseAvoidThisFallback = false;
|
2022-02-02 07:22:04 +08:00
|
|
|
export const enableSuspenseAvoidThisFallbackFizz = false;
|
2022-03-08 14:33:52 +08:00
|
|
|
export const enableCPUSuspense = false;
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableUseHook = true;
|
2022-08-23 16:36:02 +08:00
|
|
|
export const enableUseMemoCacheHook = false;
|
2022-12-15 04:08:29 +08:00
|
|
|
export const enableUseEffectEventHook = false;
|
2023-01-31 21:25:05 +08:00
|
|
|
export const enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay =
|
|
|
|
|
true;
|
2022-06-16 23:38:37 +08:00
|
|
|
export const enableClientRenderFallbackOnTextMismatch = true;
|
2020-06-12 10:13:13 +08:00
|
|
|
export const enableComponentStackLocations = true;
|
2020-03-19 21:22:36 +08:00
|
|
|
export const enableLegacyFBSupport = false;
|
2020-07-31 22:01:27 +08:00
|
|
|
export const enableFilterEmptyStringAttributesDOM = false;
|
2020-12-02 23:25:55 +08:00
|
|
|
export const disableNativeComponentFrames = false;
|
2022-03-01 00:14:30 +08:00
|
|
|
export const skipUnmountedBoundaries = false;
|
2021-07-26 21:56:59 +08:00
|
|
|
export const enableGetInspectorDataForInstanceInProduction = false;
|
2021-06-03 02:28:06 +08:00
|
|
|
export const deferRenderPhaseUpdateToNextBatch = false;
|
2020-03-13 02:38:32 +08:00
|
|
|
|
2021-02-25 05:14:14 +08:00
|
|
|
export const createRootStrictEffectsByDefault = false;
|
2020-10-20 04:05:00 +08:00
|
|
|
export const enableUseRefAccessWarning = false;
|
2020-09-25 04:42:17 +08:00
|
|
|
|
2020-12-18 06:17:23 +08:00
|
|
|
export const disableSchedulerTimeoutInWorkLoop = false;
|
2021-02-26 06:42:11 +08:00
|
|
|
export const enableLazyContextPropagation = false;
|
2022-03-10 00:48:03 +08:00
|
|
|
export const enableLegacyHidden = false;
|
2021-04-10 07:50:09 +08:00
|
|
|
export const enableSyncDefaultUpdates = true;
|
Batch sync, default and continuous lanes (#25700)
<!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.
Before submitting a pull request, please make sure the following is
done:
1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open
`chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
<!--
Explain the **motivation** for making this change. What existing problem
does the pull request solve?
-->
This is the other approach for unifying default and sync lane
https://github.com/facebook/react/pull/25524.
The approach in that PR is to merge default and continuous lane into the
sync lane, and use a new field to track the priority. But there are a
couple places that field will be needed, and it is difficult to
correctly reset the field when there is no sync lane.
In this PR we take the other approach that doesn't remove any lane, but
batch them to get the behavior we want.
## How did you test this change?
<!--
Demonstrate the code is solid. Example: The exact commands you ran and
their output, screenshots / videos if the pull request changes the user
interface.
How exactly did you verify that your PR solves the issue you wanted to
solve?
If you leave this empty, your PR will very likely be closed.
-->
yarn test
Co-authored-by: Andrew Clark <hi@andrewclark.io>
2023-01-06 07:21:35 +08:00
|
|
|
export const enableUnifiedSyncLane = __EXPERIMENTAL__;
|
2021-04-29 04:09:30 +08:00
|
|
|
export const allowConcurrentByDefault = false;
|
2021-12-08 23:11:42 +08:00
|
|
|
export const enableCustomElementPropertySupport = false;
|
2020-10-28 03:02:19 +08:00
|
|
|
|
2021-09-08 02:51:12 +08:00
|
|
|
export const consoleManagedByDevToolsDuringStrictMode = false;
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableServerContext = true;
|
2021-11-01 12:39:51 +08:00
|
|
|
export const enableUseMutableSource = false;
|
2021-09-02 02:56:52 +08:00
|
|
|
|
2022-01-11 04:32:40 +08:00
|
|
|
export const enableTransitionTracing = false;
|
|
|
|
|
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableFloat = true;
|
|
|
|
|
export const enableHostSingletons = true;
|
2022-10-01 00:06:11 +08:00
|
|
|
|
|
|
|
|
export const useModernStrictMode = false;
|
2022-10-18 05:57:59 +08:00
|
|
|
export const enableFizzExternalRuntime = false;
|
2022-10-05 01:25:17 +08:00
|
|
|
|
2020-02-04 07:31:31 +08:00
|
|
|
// Flow magic to verify the exports of this file match the original version.
|
2022-10-05 01:25:17 +08:00
|
|
|
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|