ThrowsInDidMount Class — react Architecture
Architecture documentation for the ThrowsInDidMount class in ReactSuspenseEffectsSemantics-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD ccb72c8e_c4f0_c39a_2608_39c6904132ab["ThrowsInDidMount"] 8f3b6e4f_ed52_ecc7_8b6a_3171721256d5["ReactSuspenseEffectsSemantics-test.js"] ccb72c8e_c4f0_c39a_2608_39c6904132ab -->|defined in| 8f3b6e4f_ed52_ecc7_8b6a_3171721256d5 2e7f8d92_9232_f96f_3643_8c192d51f0cb["componentWillUnmount()"] ccb72c8e_c4f0_c39a_2608_39c6904132ab -->|method| 2e7f8d92_9232_f96f_3643_8c192d51f0cb d358ce3d_6774_50d5_c111_33ce0a603f93["componentDidMount()"] ccb72c8e_c4f0_c39a_2608_39c6904132ab -->|method| d358ce3d_6774_50d5_c111_33ce0a603f93 ad65bb6e_f954_3f95_26b1_e677e365b9fc["render()"] ccb72c8e_c4f0_c39a_2608_39c6904132ab -->|method| ad65bb6e_f954_3f95_26b1_e677e365b9fc
Relationship Graph
Source Code
packages/react-reconciler/src/__tests__/ReactSuspenseEffectsSemantics-test.js lines 2011–2025
class ThrowsInDidMount extends React.Component {
componentWillUnmount() {
Scheduler.log('ThrowsInDidMount componentWillUnmount');
}
componentDidMount() {
Scheduler.log('ThrowsInDidMount componentDidMount');
if (componentDidMountShouldThrow) {
throw Error('expected');
}
}
render() {
Scheduler.log('ThrowsInDidMount render');
return <span prop="ThrowsInDidMount" />;
}
}
Source
Frequently Asked Questions
What is the ThrowsInDidMount class?
ThrowsInDidMount is a class in the react codebase, defined in packages/react-reconciler/src/__tests__/ReactSuspenseEffectsSemantics-test.js.
Where is ThrowsInDidMount defined?
ThrowsInDidMount is defined in packages/react-reconciler/src/__tests__/ReactSuspenseEffectsSemantics-test.js at line 2011.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free