(root, lane, eventTime)
| 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. |
no test coverage detected
searching dependent graphs…