added recover page on unexpected error
This commit is contained in:
parent
abde6817f0
commit
dbb14e3d74
4 changed files with 45 additions and 2 deletions
|
@ -53,11 +53,13 @@ const App: Component = () => {
|
|||
);
|
||||
});
|
||||
|
||||
const UnexpectedError = lazy(() => import("./UnexpectedError.js"))
|
||||
|
||||
return (
|
||||
<ErrorBoundary
|
||||
fallback={(err, reset) => {
|
||||
console.error(err);
|
||||
return <></>;
|
||||
return <UnexpectedError error={err} />;
|
||||
}}
|
||||
>
|
||||
<ThemeProvider theme={theme()}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue