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

Function resolveRetryThenable

lib/assets/react-source/development/react.js:26727–26743  ·  view source on GitHub ↗
(boundaryFiber, thenable)

Source from the content-addressed store, hash-verified

26725 }
26726 }
26727 function resolveRetryThenable(boundaryFiber, thenable) {
26728 var retryTime = NoWork; // Default
26729
26730 var retryCache;
26731
26732 {
26733 retryCache = boundaryFiber.stateNode;
26734 }
26735
26736 if (retryCache !== null) {
26737 // The thenable resolved, so we no longer need to memoize, because it will
26738 // never be thrown again.
26739 retryCache.delete(thenable);
26740 }
26741
26742 retryTimedOutBoundary(boundaryFiber, retryTime);
26743 } // Computes the next Just Noticeable Difference (JND) boundary.
26744 // The theory is that a person can't tell the difference between small differences in time.
26745 // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
26746 // difference in the experience. However, waiting for longer might mean that we can avoid

Callers

nothing calls this directly

Calls 1

retryTimedOutBoundaryFunction · 0.85

Tested by

no test coverage detected