(fiber)
| 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 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…