()
| 124 | } |
| 125 | |
| 126 | componentDidMount() { |
| 127 | const {error} = this.state |
| 128 | |
| 129 | if (error !== null) { |
| 130 | this.updatedWithError = true |
| 131 | } |
| 132 | |
| 133 | // Automatically reset on route change |
| 134 | this.props.router?.events?.on("routeChangeComplete", this.handleRouteChange) |
| 135 | } |
| 136 | |
| 137 | handleRouteChange = () => { |
| 138 | debug("Resetting error boundary on route change") |