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

Function deleteChild

docs/index.js:6265–6272  ·  view source on GitHub ↗
(returnFiber, childToDelete)

Source from the content-addressed store, hash-verified

6263}
6264function createChildReconciler(shouldTrackSideEffects) {
6265 function deleteChild(returnFiber, childToDelete) {
6266 if (shouldTrackSideEffects) {
6267 var deletions = returnFiber.deletions;
6268 null === deletions
6269 ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16))
6270 : deletions.push(childToDelete);
6271 }
6272 }
6273 function deleteRemainingChildren(returnFiber, currentFirstChild) {
6274 if (!shouldTrackSideEffects) return null;
6275 for (; null !== currentFirstChild; )

Callers 4

deleteRemainingChildrenFunction · 0.85
reconcileChildrenArrayFunction · 0.85
reconcileChildFibersImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…