MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / render

Method render

frontend/app/element/errorboundary.tsx:20–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 }
19
20 render() {
21 const { fallback } = this.props;
22 const { error } = this.state;
23 if (error) {
24 if (fallback != null) {
25 return React.cloneElement(fallback as any, { error });
26 }
27 const errorMsg = `Error: ${error?.message}\n\n${error?.stack}`;
28 return <pre className="error-boundary">{errorMsg}</pre>;
29 } else {
30 return <>{this.props.children}</>;
31 }
32 }
33}
34
35export class NullErrorBoundary extends React.Component<

Callers 3

initWaveFunction · 0.45
initBuilderFunction · 0.45
initPreviewFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected