mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
update comment in computeAsyncExpiration() to reflect code (#12994)
This commit is contained in:
committed by
Dan Abramov
parent
52fbe7612e
commit
9cf3733a9a
+1
-1
@@ -1208,7 +1208,7 @@ function captureCommitPhaseError(fiber: Fiber, error: mixed) {
|
||||
function computeAsyncExpiration(currentTime: ExpirationTime) {
|
||||
// Given the current clock time, returns an expiration time. We use rounding
|
||||
// to batch like updates together.
|
||||
// Should complete within ~1000ms. 1200ms max.
|
||||
// Should complete within ~5000ms. 5250ms max.
|
||||
const expirationMs = 5000;
|
||||
const bucketSizeMs = 250;
|
||||
return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs);
|
||||
|
||||
Reference in New Issue
Block a user