dev #930
@ -40,7 +40,7 @@ class ErrorBoundary extends React.Component {
|
|||||||
<p><strong>Timestamp:</strong> {new Date().toISOString()}</p>
|
<p><strong>Timestamp:</strong> {new Date().toISOString()}</p>
|
||||||
<p><strong>Error:</strong> {this.state.error && this.state.error.toString()}</p>
|
<p><strong>Error:</strong> {this.state.error && this.state.error.toString()}</p>
|
||||||
<p><strong>Stack Trace:</strong></p>
|
<p><strong>Stack Trace:</strong></p>
|
||||||
<pre>{this.state.errorInfo.componentStack}</pre>
|
<pre>{this.state.errorInfo?.componentStack}</pre>
|
||||||
</details>
|
</details>
|
||||||
<button
|
<button
|
||||||
onClick={() => this.setState({ hasError: false, error: null, errorInfo: null })}
|
onClick={() => this.setState({ hasError: false, error: null, errorInfo: null })}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user