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

Function invokeLayoutEffectUnmountInDEV

dash/deps/react-dom@18.2.0.js:25175–25205  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

captureCommitPhaseErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…