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

Function scheduleInitialHydrationOnRoot

dash/deps/react-dom@18.2.0.js:25555–25569  ·  view source on GitHub ↗
(root, lane, eventTime)

Source from the content-addressed store, hash-verified

25553 }
25554 }
25555 function scheduleInitialHydrationOnRoot(root, lane, eventTime) {
25556 // This is a special fork of scheduleUpdateOnFiber that is only used to
25557 // schedule the initial hydration of a root that has just been created. Most
25558 // of the stuff in scheduleUpdateOnFiber can be skipped.
25559 //
25560 // The main reason for this separate path, though, is to distinguish the
25561 // initial children from subsequent updates. In fully client-rendered roots
25562 // (createRoot instead of hydrateRoot), all top-level renders are modeled as
25563 // updates, but hydration roots are special because the initial render must
25564 // match what was rendered on the server.
25565 var current = root.current;
25566 current.lanes = lane;
25567 markRootUpdated(root, lane, eventTime);
25568 ensureRootIsScheduled(root, eventTime);
25569 }
25570 function isUnsafeClassRenderPhaseUpdate(fiber) {
25571 // Check if this is a render phase update. Only called by class components,
25572 // 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…