MCPcopy
hub / github.com/plotly/dash / commitRoot

Function commitRoot

dash/deps/react-dom@18.2.0.js:26683–26699  ·  view source on GitHub ↗
(root, recoverableErrors, transitions)

Source from the content-addressed store, hash-verified

26681 }
26682
26683 function commitRoot(root, recoverableErrors, transitions) {
26684 // TODO: This no longer makes any sense. We already wrap the mutation and
26685 // layout phases. Should be able to remove.
26686 var previousUpdateLanePriority = getCurrentUpdatePriority();
26687 var prevTransition = ReactCurrentBatchConfig$3.transition;
26688
26689 try {
26690 ReactCurrentBatchConfig$3.transition = null;
26691 setCurrentUpdatePriority(DiscreteEventPriority);
26692 commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority);
26693 } finally {
26694 ReactCurrentBatchConfig$3.transition = prevTransition;
26695 setCurrentUpdatePriority(previousUpdateLanePriority);
26696 }
26697
26698 return null;
26699 }
26700
26701 function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) {
26702 do {

Callers 2

finishConcurrentRenderFunction · 0.70
performSyncWorkOnRootFunction · 0.70

Calls 3

getCurrentUpdatePriorityFunction · 0.70
setCurrentUpdatePriorityFunction · 0.70
commitRootImplFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…