Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
studio/frontend: show Loading fallback instead of blank pane on lazy route navigation (#5568)
Daniel Han7b9fcf8cbc8e
diff --git a/studio/frontend/src/app/routes/__root.tsx b/studio/frontend/src/app/routes/__root.tsxindex 22d149473ce..295f0411299 100644--- a/studio/frontend/src/app/routes/__root.tsx+++ b/studio/frontend/src/app/routes/__root.tsx@@ -15,9 +15,17 @@ import {useRouterState,} from "@tanstack/react-router";import { AnimatePresence, motion } from "motion/react";-import { Suspense, useEffect } from "react";+import { Suspense, useEffect, type ReactNode } from "react";import { AppProvider } from "../provider";+// Fallback while a lazy route bundle (Train/Recipes/Export) loads.+// /chat is synchronous and never hits this.+const RouteFallback: ReactNode = (+ <div className="flex h-full min-h-0 flex-1 items-center justify-center text-muted-foreground text-sm">+ Loading...+ </div>+);+const CHAT_ONLY_ALLOWED = new Set(["/","/chat",@@ -72,7 +80,7 @@ function RootLayout() {<SettingsDialog />{hideNavbar ? (<main className="flex-1">- <Suspense fallback={null}>+ <Suspense fallback={RouteFallback}><Outlet /></Suspense></main>@@ -98,7 +106,7 @@ function RootLayout() {transition={{ duration: 0.15 }}className={`flex min-h-0 min-w-0 flex-1 basis-0 flex-col ${isChatRoute ? "overflow-hidden" : "overflow-visible"}`}>- <Suspense fallback={null}>+ <Suspense fallback={RouteFallback}><Outlet /></Suspense></motion.div>