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
fix(studio): prevent UI freeze when switching tabs from heavy pages (#5978)
ashzak22e2b63d2ebd
diff --git a/studio/frontend/src/app/routes/__root.tsx b/studio/frontend/src/app/routes/__root.tsxindex c8e47902b9c..c05b0e6451f 100644--- a/studio/frontend/src/app/routes/__root.tsx+++ b/studio/frontend/src/app/routes/__root.tsx@@ -140,9 +140,14 @@ function RootLayout() {<SidebarInset className={isChatRoute ? "overflow-hidden" : "overflow-y-auto"}><Navbar /><div- className={`flex min-h-0 min-w-0 flex-1 basis-0 flex-col ${isChatRoute ? "overflow-hidden" : "overflow-visible"} ${isChatRoute ? "" : "pt-14 md:pt-0"}`}+ className={`relative flex min-h-0 min-w-0 flex-1 basis-0 flex-col ${isChatRoute ? "overflow-hidden" : "overflow-visible"} ${isChatRoute ? "" : "pt-14 md:pt-0"}`}>- <AnimatePresence initial={false} mode="wait">+ {/* Use mode="popLayout" instead of "wait" to prevent UI freezes when+ switching from heavy pages (like Export with many checkpoints).+ "popLayout" allows the new route to mount immediately while the+ old one animates out, avoiding blocking on expensive exit renders.+ See issue #5850. */}+ <AnimatePresence initial={false} mode="popLayout"><motion.divkey={pathname}initial={{ opacity: 0 }}