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

Function shouldRemainOnFallback

lib/assets/react-source/development/react.js:21304–21308  ·  view source on GitHub ↗
(suspenseContext, current, workInProgress)

Source from the content-addressed store, hash-verified

21302 };
21303
21304 function shouldRemainOnFallback(suspenseContext, current, workInProgress) {
21305 // If the context is telling us that we should show a fallback, and we're not
21306 // already showing content, then we should show the fallback instead.
21307 return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null);
21308 }
21309
21310 function updateSuspenseComponent(current, workInProgress, renderExpirationTime) {
21311 var mode = workInProgress.mode;

Callers 1

updateSuspenseComponentFunction · 0.85

Calls 1

hasSuspenseContextFunction · 0.85

Tested by

no test coverage detected