create project

This commit is contained in:
ismailsosic
2022-12-27 12:05:56 +01:00
parent 2a33a2d3de
commit cd2143287c
16035 changed files with 2489703 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { NEXT_DYNAMIC_NO_SSR_CODE } from '../shared/lib/no-ssr-error';
export default function onRecoverableError(err, errorInfo) {
const digest = err.digest || errorInfo.digest;
// Using default react onRecoverableError
// x-ref: https://github.com/facebook/react/blob/d4bc16a7d69eb2ea38a88c8ac0b461d5f72cdcab/packages/react-dom/src/client/ReactDOMRoot.js#L83
const defaultOnRecoverableError = typeof reportError === 'function' ? // emulating an uncaught JavaScript error.
reportError : (error)=>{
window.console.error(error);
};
// Skip certain custom errors which are not expected to be reported on client
if (digest === NEXT_DYNAMIC_NO_SSR_CODE) return;
defaultOnRecoverableError(err);
};
//# sourceMappingURL=on-recoverable-error.js.map