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

Function enqueueConcurrentHookUpdate

dash/deps/react-dom@18.3.1.js:14451–14467  ·  view source on GitHub ↗
(fiber, queue, update, lane)

Source from the content-addressed store, hash-verified

14449 }
14450 }
14451 function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
14452 var interleaved = queue.interleaved;
14453
14454 if (interleaved === null) {
14455 // This is the first update. Create a circular list.
14456 update.next = update; // At the end of the current render, this queue's interleaved updates will
14457 // be transferred to the pending queue.
14458
14459 pushConcurrentUpdateQueue(queue);
14460 } else {
14461 update.next = interleaved.next;
14462 interleaved.next = update;
14463 }
14464
14465 queue.interleaved = update;
14466 return markUpdateLaneFromFiberToRoot(fiber, lane);
14467 }
14468 function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) {
14469 var interleaved = queue.interleaved;
14470

Callers 2

dispatchReducerActionFunction · 0.70
dispatchSetStateFunction · 0.70

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…