MCPcopy Create free account
hub / github.com/plotly/dash / cloneUpdateQueue

Function cloneUpdateQueue

dash/deps/react-dom@18.3.1.js:14583–14598  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

14581 fiber.updateQueue = queue;
14582 }
14583 function cloneUpdateQueue(current, workInProgress) {
14584 // Clone the update queue from current. Unless it's already a clone.
14585 var queue = workInProgress.updateQueue;
14586 var currentQueue = current.updateQueue;
14587
14588 if (queue === currentQueue) {
14589 var clone = {
14590 baseState: currentQueue.baseState,
14591 firstBaseUpdate: currentQueue.firstBaseUpdate,
14592 lastBaseUpdate: currentQueue.lastBaseUpdate,
14593 shared: currentQueue.shared,
14594 effects: currentQueue.effects
14595 };
14596 workInProgress.updateQueue = clone;
14597 }
14598 }
14599 function createUpdate(eventTime, lane) {
14600 var update = {
14601 eventTime: eventTime,

Callers 2

updateClassInstanceFunction · 0.70
updateHostRootFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…