MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / detachFiber

Function detachFiber

code/styling/public/app.js:11501–11513  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11499 }
11500
11501 function detachFiber(current) {
11502 // Cut off the return pointers to disconnect it from the tree. Ideally, we
11503 // should clear the child pointer of the parent alternate to let this
11504 // get GC:ed but we don't know which for sure which parent is the current
11505 // one so we'll settle for GC:ing the subtree of this child. This child
11506 // itself will be GC:ed when the parent updates the next time.
11507 current['return'] = null;
11508 current.child = null;
11509 if (current.alternate) {
11510 current.alternate.child = null;
11511 current.alternate['return'] = null;
11512 }
11513 }
11514
11515 var emptyPortalContainer = void 0;
11516

Callers 2

ReactFiberCommitWorkFunction · 0.70
commitDeletionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected