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

Function invokeLayoutEffectUnmountInDEV

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

Source from the content-addressed store, hash-verified

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 {

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…