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