MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / deleteRemainingChildren

Function deleteRemainingChildren

code/composition/public/app.js:9072–9086  ·  view source on GitHub ↗
(returnFiber, currentFirstChild)

Source from the content-addressed store, hash-verified

9070 }
9071
9072 function deleteRemainingChildren(returnFiber, currentFirstChild) {
9073 if (!shouldTrackSideEffects) {
9074 // Noop.
9075 return null;
9076 }
9077
9078 // TODO: For the shouldClone case, this could be micro-optimized a bit by
9079 // assuming that after the first child we've already added everything.
9080 var childToDelete = currentFirstChild;
9081 while (childToDelete !== null) {
9082 deleteChild(returnFiber, childToDelete);
9083 childToDelete = childToDelete.sibling;
9084 }
9085 return null;
9086 }
9087
9088 function mapRemainingChildren(returnFiber, currentFirstChild) {
9089 // Add the remaining children to a temporary map so that we can find them by

Callers 6

reconcileChildrenArrayFunction · 0.70
reconcileSingleTextNodeFunction · 0.70
reconcileSingleElementFunction · 0.70
reconcileSinglePortalFunction · 0.70
reconcileChildFibersFunction · 0.70

Calls 1

deleteChildFunction · 0.70

Tested by

no test coverage detected