diff --git a/frontend/src/router.tsx b/frontend/src/router.tsx index b06294a4c..a72b99968 100644 --- a/frontend/src/router.tsx +++ b/frontend/src/router.tsx @@ -135,6 +135,20 @@ const RequireAuth = () => { const { data: user, error } = useUser(); const location = useLocation(); + if ( + (error as { error?: TypeError } | undefined)?.error?.message?.startsWith( + "NetworkError" + ) + ) { + // Will just show the spinner without navigate to login, + // which won't help because its not a login issue. + return ( +