MCPcopy Index your code
hub / github.com/plotly/dash / mountIncompleteClassComponent

Function mountIncompleteClassComponent

dash/deps/react-dom@18.2.0.js:20026–20047  ·  view source on GitHub ↗
(_current, workInProgress, Component, nextProps, renderLanes)

Source from the content-addressed store, hash-verified

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);

Callers 1

beginWorkFunction · 0.70

Calls 7

isContextProviderFunction · 0.70
pushContextProviderFunction · 0.70
prepareToReadContextFunction · 0.70
constructClassInstanceFunction · 0.70
mountClassInstanceFunction · 0.70
finishClassComponentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…