assertIsMounted() — react Function Reference
Architecture documentation for the assertIsMounted() function in ReactFiberTreeReflection.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4c3d3474_670d_01ce_3c28_56d7e1bbda78["assertIsMounted()"] 0dbcf9fa_e6db_e53a_9527_79526654a3ff["ReactFiberTreeReflection.js"] 4c3d3474_670d_01ce_3c28_56d7e1bbda78 -->|defined in| 0dbcf9fa_e6db_e53a_9527_79526654a3ff style 4c3d3474_670d_01ce_3c28_56d7e1bbda78 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberTreeReflection.js lines 109–113
function assertIsMounted(fiber: Fiber) {
if (getNearestMountedFiber(fiber) !== fiber) {
throw new Error('Unable to find node on an unmounted component.');
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does assertIsMounted() do?
assertIsMounted() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberTreeReflection.js.
Where is assertIsMounted() defined?
assertIsMounted() is defined in packages/react-reconciler/src/ReactFiberTreeReflection.js at line 109.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free