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

Function retryTimedOutBoundary

lib/assets/react-source/development/react.js:26707–26726  ·  view source on GitHub ↗
(boundaryFiber, retryTime)

Source from the content-addressed store, hash-verified

26705 }
26706
26707 function retryTimedOutBoundary(boundaryFiber, retryTime) {
26708 // The boundary fiber (a Suspense component or SuspenseList component)
26709 // previously was rendered in its fallback state. One of the promises that
26710 // suspended it has resolved, which means at least part of the tree was
26711 // likely unblocked. Try rendering again, at a new expiration time.
26712 if (retryTime === NoWork) {
26713 var suspenseConfig = null; // Retries don't carry over the already committed update.
26714
26715 var currentTime = requestCurrentTimeForUpdate();
26716 retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
26717 } // TODO: Special case idle priority?
26718
26719
26720 var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
26721
26722 if (root !== null) {
26723 ensureRootIsScheduled(root);
26724 schedulePendingInteractions(root, retryTime);
26725 }
26726 }
26727 function resolveRetryThenable(boundaryFiber, thenable) {
26728 var retryTime = NoWork; // Default
26729

Callers 1

resolveRetryThenableFunction · 0.85

Calls 5

ensureRootIsScheduledFunction · 0.85

Tested by

no test coverage detected