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

Function shouldRemainOnFallback

docs/external/js/react-dom.development.js:17744–17748  ·  view source on GitHub ↗
(suspenseContext, current, workInProgress)

Source from the content-addressed store, hash-verified

17742 };
17743
17744 function shouldRemainOnFallback(suspenseContext, current, workInProgress) {
17745 // If the context is telling us that we should show a fallback, and we're not
17746 // already showing content, then we should show the fallback instead.
17747 return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null);
17748 }
17749
17750 function updateSuspenseComponent(current, workInProgress, renderExpirationTime) {
17751 var mode = workInProgress.mode;

Callers 1

updateSuspenseComponentFunction · 0.85

Calls 1

hasSuspenseContextFunction · 0.85

Tested by

no test coverage detected