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

Function invokeLayoutEffectMountInDEV

dash/deps/react-dom@18.3.1.js:25159–25191  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

25157
25158
25159 function invokeLayoutEffectMountInDEV(fiber) {
25160 {
25161 // We don't need to re-check StrictEffectsMode here.
25162 // This function is only called if that check has already passed.
25163 switch (fiber.tag) {
25164 case FunctionComponent:
25165 case ForwardRef:
25166 case SimpleMemoComponent:
25167 {
25168 try {
25169 commitHookEffectListMount(Layout | HasEffect, fiber);
25170 } catch (error) {
25171 captureCommitPhaseError(fiber, fiber.return, error);
25172 }
25173
25174 break;
25175 }
25176
25177 case ClassComponent:
25178 {
25179 var instance = fiber.stateNode;
25180
25181 try {
25182 instance.componentDidMount();
25183 } catch (error) {
25184 captureCommitPhaseError(fiber, fiber.return, error);
25185 }
25186
25187 break;
25188 }
25189 }
25190 }
25191 }
25192
25193 function invokePassiveEffectMountInDEV(fiber) {
25194 {

Callers

nothing calls this directly

Calls 3

captureCommitPhaseErrorFunction · 0.70
componentDidMountMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…