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

Function commitDeletion

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

Source from the content-addressed store, hash-verified

11040 }
11041
11042 function commitDeletion(current) {
11043 // Recursively delete all host nodes from the parent.
11044 // Detach refs and call componentWillUnmount() on the whole subtree.
11045 unmountHostComponents(current);
11046 detachFiber(current);
11047 }
11048
11049 function commitWork(current, finishedWork) {
11050 switch (finishedWork.tag) {

Callers 1

commitAllHostEffectsFunction · 0.70

Calls 2

unmountHostComponentsFunction · 0.70
detachFiberFunction · 0.70

Tested by

no test coverage detected