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

Function detachFiber

code/third-party/public/app.js:10734–10746  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

10732 }
10733
10734 function detachFiber(current) {
10735 // Cut off the return pointers to disconnect it from the tree. Ideally, we
10736 // should clear the child pointer of the parent alternate to let this
10737 // get GC:ed but we don't know which for sure which parent is the current
10738 // one so we'll settle for GC:ing the subtree of this child. This child
10739 // itself will be GC:ed when the parent updates the next time.
10740 current['return'] = null;
10741 current.child = null;
10742 if (current.alternate) {
10743 current.alternate.child = null;
10744 current.alternate['return'] = null;
10745 }
10746 }
10747
10748 var emptyPortalContainer = void 0;
10749

Callers 2

ReactFiberCommitWorkFunction · 0.70
commitDeletionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected