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

Function deleteRemainingChildren

docs/external/js/react-dom.development.js:13597–13613  ·  view source on GitHub ↗
(returnFiber, currentFirstChild)

Source from the content-addressed store, hash-verified

13595 }
13596
13597 function deleteRemainingChildren(returnFiber, currentFirstChild) {
13598 if (!shouldTrackSideEffects) {
13599 // Noop.
13600 return null;
13601 } // TODO: For the shouldClone case, this could be micro-optimized a bit by
13602 // assuming that after the first child we've already added everything.
13603
13604
13605 var childToDelete = currentFirstChild;
13606
13607 while (childToDelete !== null) {
13608 deleteChild(returnFiber, childToDelete);
13609 childToDelete = childToDelete.sibling;
13610 }
13611
13612 return null;
13613 }
13614
13615 function mapRemainingChildren(returnFiber, currentFirstChild) {
13616 // Add the remaining children to a temporary map so that we can find them by

Callers 6

reconcileChildrenArrayFunction · 0.85
reconcileSingleTextNodeFunction · 0.85
reconcileSingleElementFunction · 0.85
reconcileSinglePortalFunction · 0.85
reconcileChildFibersFunction · 0.85

Calls 1

deleteChildFunction · 0.85

Tested by

no test coverage detected