[flags] Clean up scheduler flags (#31814)
These flags are hardcoded now, we can make them static.
Ricky committed
Dec 17, 2024 at 10:27 UTC
d42872588282b9eef56b8fa02441b33d596fd197
2 files changed
+7
-11
packages/scheduler/src/forks/SchedulerFeatureFlags.www-dynamic.js
-3
@@ -11,7 +11,4 @@
11
// Use __VARIANT__ to simulate a GK. The tests will be run twice: once
12
// with the __VARIANT__ set to `true`, and once set to `false`.
13
14
-export const userBlockingPriorityTimeout = 250;
15
-export const normalPriorityTimeout = 5000;
16
-export const lowPriorityTimeout = 10000;
14
export const enableRequestPaint = __VARIANT__;
packages/scheduler/src/forks/SchedulerFeatureFlags.www.js
+7
-8
@@ -10,13 +10,12 @@
10
// $FlowFixMe[cannot-resolve-module]
11
const dynamicFeatureFlags = require('SchedulerFeatureFlags');
12
13
-export const {
14
- userBlockingPriorityTimeout,
15
- normalPriorityTimeout,
16
- lowPriorityTimeout,
17
- enableRequestPaint,
18
-} = dynamicFeatureFlags;
13
+export const {enableRequestPaint} = dynamicFeatureFlags;
14
20
-export const frameYieldMs = 10;
21
-export const enableSchedulerDebugging = true;
15
+export const enableSchedulerDebugging = false;
16
export const enableProfiling = __DEV__;
17
+export const frameYieldMs = 10;
18
+
19
+export const userBlockingPriorityTimeout = 250;
20
+export const normalPriorityTimeout = 5000;
21
+export const lowPriorityTimeout = 10000;