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

Function isUnsafeClassRenderPhaseUpdate

dash/deps/react-dom@18.3.1.js:25609–25616  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

25607 ensureRootIsScheduled(root, eventTime);
25608 }
25609 function isUnsafeClassRenderPhaseUpdate(fiber) {
25610 // Check if this is a render phase update. Only called by class components,
25611 // which special (deprecated) behavior for UNSAFE_componentWillReceive props.
25612 return (// TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We
25613 // decided not to enable it.
25614 (executionContext & RenderContext) !== NoContext
25615 );
25616 } // Use this function to schedule a task for a root. There's only one task per
25617 // root; if a task was already scheduled, we'll check to make sure the priority
25618 // of the existing task is the same as the priority of the next level that the
25619 // root has work on. This function is called on every update, and right before

Callers 1

enqueueUpdateFunction · 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…