(props)
| 497 | |
| 498 | class LifecycleSuspender extends Component { |
| 499 | constructor(props) { |
| 500 | super(props); |
| 501 | this.state = { count: 0 }; |
| 502 | |
| 503 | increment = () => this.setState(({ count }) => ({ count: count + 1 })); |
| 504 | } |
| 505 | render() { |
| 506 | if (this.state.count == 2 && !resolved) { |
| 507 | throw promise; |