MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / commitRoot

Function commitRoot

mini-react/src/mini-react.js:250–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 }
249
250 function commitRoot() {
251 deletions.forEach(commitWork)
252 commitWork(wipRoot.child)
253 commitEffectHooks()
254 currentRoot = wipRoot
255 wipRoot = null
256 deletions = []
257 }
258
259 function commitWork(fiber) {
260 if (!fiber) {

Callers 1

workLoopFunction · 0.85

Calls 2

commitWorkFunction · 0.85
commitEffectHooksFunction · 0.85

Tested by

no test coverage detected