Liferay.Loader.define("data-engine-js-components-web@1.0.79/js/core/components/ErrorBoundary.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(r,e,o){var t;window;{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=void 0;var n=(t=o("liferay!frontend-js-react-web$react"))&&t.__esModule?t:{default:t};class r extends n.default.Component{static getDerivedStateFromError(r){return{hasError:!0}}constructor(r){super(r),this.state={hasError:!1}}componentDidCatch(r){this.props.onError&&this.props.onError(r)}render(){return this.state.hasError?null:this.props.children}}e.ErrorBoundary=r}}));
//# sourceMappingURL=ErrorBoundary.es.js.map