MCPcopy Create free account
hub / github.com/microsoft/SandDance / resolveRetryThenable

Function resolveRetryThenable

docs/external/js/react-dom.development.js:23167–23183  ·  view source on GitHub ↗
(boundaryFiber, thenable)

Source from the content-addressed store, hash-verified

23165 }
23166 }
23167 function resolveRetryThenable(boundaryFiber, thenable) {
23168 var retryTime = NoWork; // Default
23169
23170 var retryCache;
23171
23172 {
23173 retryCache = boundaryFiber.stateNode;
23174 }
23175
23176 if (retryCache !== null) {
23177 // The thenable resolved, so we no longer need to memoize, because it will
23178 // never be thrown again.
23179 retryCache.delete(thenable);
23180 }
23181
23182 retryTimedOutBoundary(boundaryFiber, retryTime);
23183 } // Computes the next Just Noticeable Difference (JND) boundary.
23184 // The theory is that a person can't tell the difference between small differences in time.
23185 // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
23186 // difference in the experience. However, waiting for longer might mean that we can avoid

Callers

nothing calls this directly

Calls 2

retryTimedOutBoundaryFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected