MCPcopy Index your code
hub / github.com/microsoft/SandDance / cloneUpdateQueue

Function cloneUpdateQueue

docs/external/js/react-dom.development.js:12295–12309  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

12293 fiber.updateQueue = queue;
12294 }
12295 function cloneUpdateQueue(current, workInProgress) {
12296 // Clone the update queue from current. Unless it's already a clone.
12297 var queue = workInProgress.updateQueue;
12298 var currentQueue = current.updateQueue;
12299
12300 if (queue === currentQueue) {
12301 var clone = {
12302 baseState: currentQueue.baseState,
12303 baseQueue: currentQueue.baseQueue,
12304 shared: currentQueue.shared,
12305 effects: currentQueue.effects
12306 };
12307 workInProgress.updateQueue = clone;
12308 }
12309 }
12310 function createUpdate(expirationTime, suspenseConfig) {
12311 var update = {
12312 expirationTime: expirationTime,

Callers 3

enqueueCapturedUpdateFunction · 0.85
updateClassInstanceFunction · 0.85
updateHostRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected