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

Function commitSuspenseComponent

lib/assets/react-source/development/react.js:24312–24328  ·  view source on GitHub ↗
(finishedWork)

Source from the content-addressed store, hash-verified

24310 }
24311
24312 function commitSuspenseComponent(finishedWork) {
24313 var newState = finishedWork.memoizedState;
24314 var newDidTimeout;
24315 var primaryChildParent = finishedWork;
24316
24317 if (newState === null) {
24318 newDidTimeout = false;
24319 } else {
24320 newDidTimeout = true;
24321 primaryChildParent = finishedWork.child;
24322 markCommitTimeOfFallback();
24323 }
24324
24325 if ( primaryChildParent !== null) {
24326 hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
24327 }
24328 }
24329
24330 function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
24331

Callers 1

commitWorkFunction · 0.85

Calls 2

markCommitTimeOfFallbackFunction · 0.85
hideOrUnhideAllChildrenFunction · 0.85

Tested by

no test coverage detected