EventuallyTerminating Class — react Architecture
Architecture documentation for the EventuallyTerminating class in ReactLegacyUpdates-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 680a2430_7c87_b963_dcd4_ebead86fbb6a["EventuallyTerminating"] 57bbe153_3647_1eae_6c86_4e9ee333eae2["ReactLegacyUpdates-test.js"] 680a2430_7c87_b963_dcd4_ebead86fbb6a -->|defined in| 57bbe153_3647_1eae_6c86_4e9ee333eae2 e6a9bbd6_9bcd_bb7a_8631_98ef1100f56a["componentDidMount()"] 680a2430_7c87_b963_dcd4_ebead86fbb6a -->|method| e6a9bbd6_9bcd_bb7a_8631_98ef1100f56a 2e93db6b_7a15_ad08_c9e0_35388f3b4b9d["componentDidUpdate()"] 680a2430_7c87_b963_dcd4_ebead86fbb6a -->|method| 2e93db6b_7a15_ad08_c9e0_35388f3b4b9d ce1cefc8_504b_eb39_32fd_300f9058ee4f["render()"] 680a2430_7c87_b963_dcd4_ebead86fbb6a -->|method| ce1cefc8_504b_eb39_32fd_300f9058ee4f
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactLegacyUpdates-test.js lines 1413–1426
class EventuallyTerminating extends React.Component {
state = {step: 0};
componentDidMount() {
this.setState({step: 1});
}
componentDidUpdate() {
if (this.state.step < limit) {
this.setState({step: this.state.step + 1});
}
}
render() {
return this.state.step;
}
}
Source
Frequently Asked Questions
What is the EventuallyTerminating class?
EventuallyTerminating is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactLegacyUpdates-test.js.
Where is EventuallyTerminating defined?
EventuallyTerminating is defined in packages/react-dom/src/__tests__/ReactLegacyUpdates-test.js at line 1413.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free