diff --git a/apps/web/src/root.tsx b/apps/web/src/root.tsx index d28ea0a45..361881948 100644 --- a/apps/web/src/root.tsx +++ b/apps/web/src/root.tsx @@ -106,7 +106,12 @@ function RouteWrapper(props: { return Component; }, [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 (