invokeLayoutEffectUnmountInDEV() — react Function Reference
Architecture documentation for the invokeLayoutEffectUnmountInDEV() function in ReactFiberCommitWork.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 280e7198_912b_d409_1e7c_819dab383d5d["invokeLayoutEffectUnmountInDEV()"] e0fbfbd5_47b0_a489_0b36_bbfad9245544["ReactFiberCommitWork.js"] 280e7198_912b_d409_1e7c_819dab383d5d -->|defined in| e0fbfbd5_47b0_a489_0b36_bbfad9245544 31dbea93_6a15_5a88_2a94_0513d6287f5a["commitHookEffectListUnmount()"] 280e7198_912b_d409_1e7c_819dab383d5d -->|calls| 31dbea93_6a15_5a88_2a94_0513d6287f5a style 280e7198_912b_d409_1e7c_819dab383d5d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberCommitWork.js lines 5304–5328
export function invokeLayoutEffectUnmountInDEV(fiber: Fiber): void {
if (__DEV__) {
// We don't need to re-check StrictEffectsMode here.
// This function is only called if that check has already passed.
switch (fiber.tag) {
case FunctionComponent:
case ForwardRef:
case SimpleMemoComponent: {
commitHookEffectListUnmount(
HookLayout | HookHasEffect,
fiber,
fiber.return,
);
break;
}
case ClassComponent: {
const instance = fiber.stateNode;
if (typeof instance.componentWillUnmount === 'function') {
safelyCallComponentWillUnmount(fiber, fiber.return, instance);
}
break;
}
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does invokeLayoutEffectUnmountInDEV() do?
invokeLayoutEffectUnmountInDEV() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberCommitWork.js.
Where is invokeLayoutEffectUnmountInDEV() defined?
invokeLayoutEffectUnmountInDEV() is defined in packages/react-reconciler/src/ReactFiberCommitWork.js at line 5304.
What does invokeLayoutEffectUnmountInDEV() call?
invokeLayoutEffectUnmountInDEV() calls 1 function(s): commitHookEffectListUnmount.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free