fix(app): keep the loading screen up while startup redirects

(cherry picked from commit 0b28d4cbff)
This commit is contained in:
Mohamed Boudra
2026-11-05 08:08:38 +01:00
parent 71c28b431c
commit 13cc485e6f
+9 -2
View File
@@ -48,9 +48,16 @@ export default function Index() {
isWaitingForSetup: bootstrapState.isWaitingForSetup,
});
const splash = <StartupSplashScreen bootstrapState={isDesktop ? bootstrapState : undefined} />;
if (startupRoute.kind === "redirect") {
return <Redirect href={startupRoute.href} />;
// The loading screen stays up until the target route paints; a redirect alone renders nothing.
return (
<>
{splash}
<Redirect href={startupRoute.href} />
</>
);
}
return <StartupSplashScreen bootstrapState={isDesktop ? bootstrapState : undefined} />;
return splash;
}