MCPcopy Create free account
hub / github.com/bytebase/dbhub / constructor

Method constructor

frontend/src/components/ErrorBoundary.tsx:16–19  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

14 */
15export default class ErrorBoundary extends Component<Props, State> {
16 constructor(props: Props) {
17 super(props);
18 this.state = { error: null };
19 }
20
21 static getDerivedStateFromError(error: Error): State {
22 return { error };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected