MCPcopy Create free account
hub / github.com/caseywebdev/react-list / recursivelyTraverseReappearLayoutEffects

Function recursivelyTraverseReappearLayoutEffects

docs/index.js:12286–12394  ·  view source on GitHub ↗
(
  finishedRoot$jscomp$0,
  parentFiber,
  includeWorkInProgressEffects
)

Source from the content-addressed store, hash-verified

12284 }
12285}
12286function recursivelyTraverseReappearLayoutEffects(
12287 finishedRoot$jscomp$0,
12288 parentFiber,
12289 includeWorkInProgressEffects
12290) {
12291 includeWorkInProgressEffects =
12292 includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);
12293 for (parentFiber = parentFiber.child; null !== parentFiber; ) {
12294 var current = parentFiber.alternate,
12295 finishedRoot = finishedRoot$jscomp$0,
12296 finishedWork = parentFiber,
12297 flags = finishedWork.flags;
12298 switch (finishedWork.tag) {
12299 case 0:
12300 case 11:
12301 case 15:
12302 recursivelyTraverseReappearLayoutEffects(
12303 finishedRoot,
12304 finishedWork,
12305 includeWorkInProgressEffects
12306 );
12307 commitHookEffectListMount(4, finishedWork);
12308 break;
12309 case 1:
12310 recursivelyTraverseReappearLayoutEffects(
12311 finishedRoot,
12312 finishedWork,
12313 includeWorkInProgressEffects
12314 );
12315 current = finishedWork;
12316 finishedRoot = current.stateNode;
12317 if ("function" === typeof finishedRoot.componentDidMount)
12318 try {
12319 finishedRoot.componentDidMount();
12320 } catch (error) {
12321 captureCommitPhaseError(current, current.return, error);
12322 }
12323 current = finishedWork;
12324 finishedRoot = current.updateQueue;
12325 if (null !== finishedRoot) {
12326 var instance = current.stateNode;
12327 try {
12328 var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;
12329 if (null !== hiddenCallbacks)
12330 for (
12331 finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0;
12332 finishedRoot < hiddenCallbacks.length;
12333 finishedRoot++
12334 )
12335 callCallback(hiddenCallbacks[finishedRoot], instance);
12336 } catch (error) {
12337 captureCommitPhaseError(current, current.return, error);
12338 }
12339 }
12340 includeWorkInProgressEffects &&
12341 flags & 64 &&
12342 commitClassCallbacks(finishedWork);
12343 safelyAttachRef(finishedWork, finishedWork.return);

Callers 2

reappearLayoutEffectsFunction · 0.85

Calls 9

captureCommitPhaseErrorFunction · 0.85
callCallbackFunction · 0.85
commitClassCallbacksFunction · 0.85
safelyAttachRefFunction · 0.85
commitHostMountFunction · 0.85
reappearLayoutEffectsFunction · 0.85
componentDidMountMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…