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

Function commitDeletion

code/composition/public/app.js:11947–11952  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

11945 }
11946
11947 function commitDeletion(current) {
11948 // Recursively delete all host nodes from the parent.
11949 // Detach refs and call componentWillUnmount() on the whole subtree.
11950 unmountHostComponents(current);
11951 detachFiber(current);
11952 }
11953
11954 function commitWork(current, finishedWork) {
11955 switch (finishedWork.tag) {

Callers 1

commitAllHostEffectsFunction · 0.70

Calls 2

unmountHostComponentsFunction · 0.70
detachFiberFunction · 0.70

Tested by

no test coverage detected