Skip to content

Commit 75935bd

Browse files
committed
Added suggeseted error boundary fix.
1 parent 267e4fc commit 75935bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/module/src/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ class ErrorBoundary extends React.Component<ErrorPageProps, ErrorPageState> {
4141
return { hasError: true, error, historyState: history.state };
4242
}
4343

44+
componentDidCatch() {
45+
this.setState({ hasError: true });
46+
}
47+
4448
render() {
4549

4650
if (this.state.historyState !== history.state) {

0 commit comments

Comments
 (0)