mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[flags] Clean up scheduler flags (#31814)
These flags are hardcoded now, we can make them static.
This commit is contained in:
@@ -11,7 +11,4 @@
|
||||
// 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 userBlockingPriorityTimeout = 250;
|
||||
export const normalPriorityTimeout = 5000;
|
||||
export const lowPriorityTimeout = 10000;
|
||||
export const enableRequestPaint = __VARIANT__;
|
||||
|
||||
@@ -10,13 +10,12 @@
|
||||
// $FlowFixMe[cannot-resolve-module]
|
||||
const dynamicFeatureFlags = require('SchedulerFeatureFlags');
|
||||
|
||||
export const {
|
||||
userBlockingPriorityTimeout,
|
||||
normalPriorityTimeout,
|
||||
lowPriorityTimeout,
|
||||
enableRequestPaint,
|
||||
} = dynamicFeatureFlags;
|
||||
export const {enableRequestPaint} = dynamicFeatureFlags;
|
||||
|
||||
export const frameYieldMs = 10;
|
||||
export const enableSchedulerDebugging = true;
|
||||
export const enableSchedulerDebugging = false;
|
||||
export const enableProfiling = __DEV__;
|
||||
export const frameYieldMs = 10;
|
||||
|
||||
export const userBlockingPriorityTimeout = 250;
|
||||
export const normalPriorityTimeout = 5000;
|
||||
export const lowPriorityTimeout = 10000;
|
||||
|
||||
Reference in New Issue
Block a user