MCPcopy Create free account
hub / github.com/reactjs/react-rails / markRootSuspendedAtTime

Function markRootSuspendedAtTime

lib/assets/react-source/development/react.js:27861–27880  ·  view source on GitHub ↗
(root, expirationTime)

Source from the content-addressed store, hash-verified

27859 return firstSuspendedTime !== NoWork && firstSuspendedTime >= expirationTime && lastSuspendedTime <= expirationTime;
27860 }
27861 function markRootSuspendedAtTime(root, expirationTime) {
27862 var firstSuspendedTime = root.firstSuspendedTime;
27863 var lastSuspendedTime = root.lastSuspendedTime;
27864
27865 if (firstSuspendedTime < expirationTime) {
27866 root.firstSuspendedTime = expirationTime;
27867 }
27868
27869 if (lastSuspendedTime > expirationTime || firstSuspendedTime === NoWork) {
27870 root.lastSuspendedTime = expirationTime;
27871 }
27872
27873 if (expirationTime <= root.lastPingedTime) {
27874 root.lastPingedTime = NoWork;
27875 }
27876
27877 if (expirationTime <= root.lastExpiredTime) {
27878 root.lastExpiredTime = NoWork;
27879 }
27880 }
27881 function markRootUpdatedAtTime(root, expirationTime) {
27882 // Update the range of pending times
27883 var firstPendingTime = root.firstPendingTime;

Callers 5

finishConcurrentRenderFunction · 0.85
performSyncWorkOnRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected