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

Function resolveLazyComponentTag

dash/deps/react-dom@18.3.1.js:28175–28191  ·  view source on GitHub ↗
(Component)

Source from the content-addressed store, hash-verified

28173 return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;
28174 }
28175 function resolveLazyComponentTag(Component) {
28176 if (typeof Component === 'function') {
28177 return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;
28178 } else if (Component !== undefined && Component !== null) {
28179 var $$typeof = Component.$$typeof;
28180
28181 if ($$typeof === REACT_FORWARD_REF_TYPE) {
28182 return ForwardRef;
28183 }
28184
28185 if ($$typeof === REACT_MEMO_TYPE) {
28186 return MemoComponent;
28187 }
28188 }
28189
28190 return IndeterminateComponent;
28191 } // This is used to create an alternate fiber to do work on.
28192
28193 function createWorkInProgress(current, pendingProps) {
28194 var workInProgress = current.alternate;

Callers 1

mountLazyComponentFunction · 0.70

Calls 1

shouldConstruct$1Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…