Skip to content

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.

fix(studio): prevent route transition DOM duplication via AnimatePresence (#4987)

AdamPlatin1233b092bcd460a
diff --git a/studio/frontend/src/app/routes/__root.tsx b/studio/frontend/src/app/routes/__root.tsx
index d7780c67436..bac92053033 100644
--- a/studio/frontend/src/app/routes/__root.tsx
+++ b/studio/frontend/src/app/routes/__root.tsx
@@ -40,11 +40,12 @@ function RootLayout() {
return (
<AppProvider>
{!hideNavbar && <Navbar />}
- <AnimatePresence initial={false}>
+ <AnimatePresence initial={false} mode="wait">
<motion.div
key={pathname}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
transition={{ duration: 0.15 }}
className="flex-1"
>