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

Function commitDeletion

code/event-handlers/public/app.js:11139–11144  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11137 }
11138
11139 function commitDeletion(current) {
11140 // Recursively delete all host nodes from the parent.
11141 // Detach refs and call componentWillUnmount() on the whole subtree.
11142 unmountHostComponents(current);
11143 detachFiber(current);
11144 }
11145
11146 function commitWork(current, finishedWork) {
11147 switch (finishedWork.tag) {

Callers 1

commitAllHostEffectsFunction · 0.70

Calls 2

unmountHostComponentsFunction · 0.70
detachFiberFunction · 0.70

Tested by

no test coverage detected