(_current, workInProgress, Component, nextProps, renderLanes)
| 20024 | } |
| 20025 | |
| 20026 | function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) { |
| 20027 | resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); // Promote the fiber to a class and try rendering again. |
| 20028 | |
| 20029 | workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent` |
| 20030 | // Push context providers early to prevent context stack mismatches. |
| 20031 | // During mounting we don't know the child context yet as the instance doesn't exist. |
| 20032 | // We will invalidate the child context in finishClassComponent() right after rendering. |
| 20033 | |
| 20034 | var hasContext; |
| 20035 | |
| 20036 | if (isContextProvider(Component)) { |
| 20037 | hasContext = true; |
| 20038 | pushContextProvider(workInProgress); |
| 20039 | } else { |
| 20040 | hasContext = false; |
| 20041 | } |
| 20042 | |
| 20043 | prepareToReadContext(workInProgress, renderLanes); |
| 20044 | constructClassInstance(workInProgress, Component, nextProps); |
| 20045 | mountClassInstance(workInProgress, Component, nextProps, renderLanes); |
| 20046 | return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes); |
| 20047 | } |
| 20048 | |
| 20049 | function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) { |
| 20050 | resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); |
no test coverage detected
searching dependent graphs…