MCPcopy Index your code
hub / github.com/microsoft/SandDance / commitSuspenseComponent

Function commitSuspenseComponent

docs/external/js/react-dom.development.js:20752–20768  ·  view source on GitHub ↗
(finishedWork)

Source from the content-addressed store, hash-verified

20750 }
20751
20752 function commitSuspenseComponent(finishedWork) {
20753 var newState = finishedWork.memoizedState;
20754 var newDidTimeout;
20755 var primaryChildParent = finishedWork;
20756
20757 if (newState === null) {
20758 newDidTimeout = false;
20759 } else {
20760 newDidTimeout = true;
20761 primaryChildParent = finishedWork.child;
20762 markCommitTimeOfFallback();
20763 }
20764
20765 if ( primaryChildParent !== null) {
20766 hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
20767 }
20768 }
20769
20770 function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
20771

Callers 1

commitWorkFunction · 0.85

Calls 2

markCommitTimeOfFallbackFunction · 0.85
hideOrUnhideAllChildrenFunction · 0.85

Tested by

no test coverage detected