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

Function enqueueRenderPhaseUpdate

dash/deps/react-dom@18.2.0.js:17550–17566  ·  view source on GitHub ↗
(queue, update)

Source from the content-addressed store, hash-verified

17548 }
17549
17550 function enqueueRenderPhaseUpdate(queue, update) {
17551 // This is a render phase update. Stash it in a lazily-created map of
17552 // queue -> linked list of updates. After this render pass, we'll restart
17553 // and apply the stashed updates on top of the work-in-progress hook.
17554 didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
17555 var pending = queue.pending;
17556
17557 if (pending === null) {
17558 // This is the first update. Create a circular list.
17559 update.next = update;
17560 } else {
17561 update.next = pending.next;
17562 pending.next = update;
17563 }
17564
17565 queue.pending = update;
17566 } // TODO: Move to ReactFiberConcurrentUpdates?
17567
17568
17569 function entangleTransitionUpdate(root, queue, lane) {

Callers 2

dispatchReducerActionFunction · 0.70
dispatchSetStateFunction · 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…