(fiber)
| 25212 | } |
| 25213 | |
| 25214 | function invokeLayoutEffectUnmountInDEV(fiber) { |
| 25215 | { |
| 25216 | // We don't need to re-check StrictEffectsMode here. |
| 25217 | // This function is only called if that check has already passed. |
| 25218 | switch (fiber.tag) { |
| 25219 | case FunctionComponent: |
| 25220 | case ForwardRef: |
| 25221 | case SimpleMemoComponent: |
| 25222 | { |
| 25223 | try { |
| 25224 | commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return); |
| 25225 | } catch (error) { |
| 25226 | captureCommitPhaseError(fiber, fiber.return, error); |
| 25227 | } |
| 25228 | |
| 25229 | break; |
| 25230 | } |
| 25231 | |
| 25232 | case ClassComponent: |
| 25233 | { |
| 25234 | var instance = fiber.stateNode; |
| 25235 | |
| 25236 | if (typeof instance.componentWillUnmount === 'function') { |
| 25237 | safelyCallComponentWillUnmount(fiber, fiber.return, instance); |
| 25238 | } |
| 25239 | |
| 25240 | break; |
| 25241 | } |
| 25242 | } |
| 25243 | } |
| 25244 | } |
| 25245 | |
| 25246 | function invokePassiveEffectUnmountInDEV(fiber) { |
| 25247 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…