MCPcopy Create free account
hub / github.com/reactjs/react-rails / commitDeletion

Function commitDeletion

lib/assets/react-source/development/react.js:24191–24199  ·  view source on GitHub ↗
(finishedRoot, current, renderPriorityLevel)

Source from the content-addressed store, hash-verified

24189 }
24190
24191 function commitDeletion(finishedRoot, current, renderPriorityLevel) {
24192 {
24193 // Recursively delete all host nodes from the parent.
24194 // Detach refs and call componentWillUnmount() on the whole subtree.
24195 unmountHostComponents(finishedRoot, current, renderPriorityLevel);
24196 }
24197
24198 detachFiber(current);
24199 }
24200
24201 function commitWork(current, finishedWork) {
24202

Callers 1

commitMutationEffectsFunction · 0.85

Calls 2

unmountHostComponentsFunction · 0.85
detachFiberFunction · 0.85

Tested by

no test coverage detected