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

Function scheduleInitialHydrationOnRoot

dash/deps/react-dom@18.3.1.js:25594–25608  ·  view source on GitHub ↗
(root, lane, eventTime)

Source from the content-addressed store, hash-verified

25592 }
25593 }
25594 function scheduleInitialHydrationOnRoot(root, lane, eventTime) {
25595 // This is a special fork of scheduleUpdateOnFiber that is only used to
25596 // schedule the initial hydration of a root that has just been created. Most
25597 // of the stuff in scheduleUpdateOnFiber can be skipped.
25598 //
25599 // The main reason for this separate path, though, is to distinguish the
25600 // initial children from subsequent updates. In fully client-rendered roots
25601 // (createRoot instead of hydrateRoot), all top-level renders are modeled as
25602 // updates, but hydration roots are special because the initial render must
25603 // match what was rendered on the server.
25604 var current = root.current;
25605 current.lanes = lane;
25606 markRootUpdated(root, lane, eventTime);
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.

Callers 1

createHydrationContainerFunction · 0.70

Calls 2

markRootUpdatedFunction · 0.70
ensureRootIsScheduledFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…