50
import {createFiberRoot} from './ReactFiberRoot';
51
import {injectInternals} from './ReactFiberDevToolsHook';
52
import {
53
- requestCurrentTime,
53
+ requestCurrentTimeForUpdate,
54
computeExpirationForFiber,
55
scheduleWork,
56
flushRoot,
231
callback: ?Function,
232
): ExpirationTime {
233
const current = container.current;
234
- const currentTime = requestCurrentTime();
234
+ const currentTime = requestCurrentTimeForUpdate();
235
if (__DEV__) {
236
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
237
if ('undefined' !== typeof jest) {
348
// If we're still blocked after this, we need to increase
349
// the priority of any promises resolving within this
350
// boundary so that they next attempt also has higher pri.
351
- let retryExpTime = computeInteractiveExpiration(requestCurrentTime());
351
+ let retryExpTime = computeInteractiveExpiration(
352
+ requestCurrentTimeForUpdate(),
353
+ );
354
markRetryTimeIfNotHydrated(fiber, retryExpTime);
355
break;
356
}
382
// Suspense.
383
return;
384
}
383
- let expTime = computeInteractiveExpiration(requestCurrentTime());
385
+ let expTime = computeInteractiveExpiration(requestCurrentTimeForUpdate());
386
scheduleWork(fiber, expTime);
387
markRetryTimeIfNotHydrated(fiber, expTime);
388
}
395
// Suspense.
396
return;
397
}
396
- let expTime = computeContinuousHydrationExpiration(requestCurrentTime());
398
+ let expTime = computeContinuousHydrationExpiration(
399
+ requestCurrentTimeForUpdate(),
400
+ );
401
scheduleWork(fiber, expTime);
402
markRetryTimeIfNotHydrated(fiber, expTime);
403
}
408
// their priority other than synchronously flush it.
409
return;
410
}
407
- const currentTime = requestCurrentTime();
411
+ const currentTime = requestCurrentTimeForUpdate();
412
const expTime = computeExpirationForFiber(currentTime, fiber, null);
413
scheduleWork(fiber, expTime);
414
markRetryTimeIfNotHydrated(fiber, expTime);