UNPKG

@exceptionless/react

Version:
14 lines 468 B
import { Component } from "react"; import { Exceptionless } from "@exceptionless/browser"; export class ExceptionlessErrorBoundary extends Component { constructor(props) { super(props); } async componentDidCatch(error, errorInfo) { await Exceptionless.createException(error).setProperty("errorInfo", errorInfo).submit(); } render() { return this.props.children; } } //# sourceMappingURL=ExceptionlessErrorBoundary.js.map