mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
web: handle errors during bootstrapping
This commit is contained in:
@@ -106,7 +106,12 @@ function RouteWrapper(props: {
|
|||||||
return Component;
|
return Component;
|
||||||
}, [component, path]);
|
}, [component, path]);
|
||||||
|
|
||||||
if (result.status !== "fulfilled")
|
if (result.status === "rejected") {
|
||||||
|
throw result.reason instanceof Error
|
||||||
|
? result.reason
|
||||||
|
: new Error(result.reason);
|
||||||
|
}
|
||||||
|
if (result.status === "pending")
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user