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

Function commitDeletion

code/new-context-api/public/app.js:11170–11175  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11168 }
11169
11170 function commitDeletion(current) {
11171 // Recursively delete all host nodes from the parent.
11172 // Detach refs and call componentWillUnmount() on the whole subtree.
11173 unmountHostComponents(current);
11174 detachFiber(current);
11175 }
11176
11177 function commitWork(current, finishedWork) {
11178 switch (finishedWork.tag) {

Callers 1

commitAllHostEffectsFunction · 0.70

Calls 2

unmountHostComponentsFunction · 0.70
detachFiberFunction · 0.70

Tested by

no test coverage detected