Skip to content

Commit

Permalink
add back ErrorBoundary constructor (#3668)
Browse files Browse the repository at this point in the history
* add back constructor

* lint
  • Loading branch information
0xKurt authored Oct 2, 2024
1 parent eecef33 commit 8132958
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/builder/src/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ interface State {
}

class ErrorBoundary extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
this.state = { hasError: false };
}

static getDerivedStateFromError() {
return { hasError: true };
}
Expand Down

0 comments on commit 8132958

Please sign in to comment.