Liferay.Loader.define("data-engine-js-components-web@1.0.107/js/core/components/ErrorBoundary.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(r,e,o){window;{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=void 0;var t=function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}(o("liferay!frontend-js-react-web$react"));class ErrorBoundary extends t.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=ErrorBoundary}}));
//# sourceMappingURL=ErrorBoundary.es.js.map