(fiber)
| 25173 | } |
| 25174 | |
| 25175 | function invokeLayoutEffectUnmountInDEV(fiber) { |
| 25176 | { |
| 25177 | // We don't need to re-check StrictEffectsMode here. |
| 25178 | // This function is only called if that check has already passed. |
| 25179 | switch (fiber.tag) { |
| 25180 | case FunctionComponent: |
| 25181 | case ForwardRef: |
| 25182 | case SimpleMemoComponent: |
| 25183 | { |
| 25184 | try { |
| 25185 | commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return); |
| 25186 | } catch (error) { |
| 25187 | captureCommitPhaseError(fiber, fiber.return, error); |
| 25188 | } |
| 25189 | |
| 25190 | break; |
| 25191 | } |
| 25192 | |
| 25193 | case ClassComponent: |
| 25194 | { |
| 25195 | var instance = fiber.stateNode; |
| 25196 | |
| 25197 | if (typeof instance.componentWillUnmount === 'function') { |
| 25198 | safelyCallComponentWillUnmount(fiber, fiber.return, instance); |
| 25199 | } |
| 25200 | |
| 25201 | break; |
| 25202 | } |
| 25203 | } |
| 25204 | } |
| 25205 | } |
| 25206 | |
| 25207 | function invokePassiveEffectUnmountInDEV(fiber) { |
| 25208 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…