unsloth/studio/frontend/src/app
ashzak 22e2b63d2e
fix(studio): prevent UI freeze when switching tabs from heavy pages (#5978)
* fix(studio): prevent UI freeze when switching tabs from heavy pages

Change AnimatePresence mode from "wait" to "popLayout" to fix issue
where switching tabs from Export (or other heavy pages) would cause
the URL to update but the UI to freeze.

With mode="wait", the exit animation must complete before the new
component mounts. If the exiting page has expensive computations,
this blocks the UI. mode="popLayout" allows the new route to mount
immediately while the old one animates out.

Fixes #5850

* fix: add relative positioning for popLayout mode

AnimatePresence mode='popLayout' applies position: absolute to the
exiting element, so the parent container needs position: relative
to prevent layout jumps during transitions.

---------

Co-authored-by: Lee Jackson <130007945+Imagineer99@users.noreply.github.com>
2026-06-11 14:39:15 +02:00
..
routes fix(studio): prevent UI freeze when switching tabs from heavy pages (#5978) 2026-06-11 14:39:15 +02:00
app.tsx Update license headers 2026-03-12 17:23:10 +00:00
auth-guards.ts studio/frontend: reconcile stale must_change_password localStorage flag (#5576) 2026-05-19 05:48:46 -07:00
provider.tsx Studio: in-app Update llama.cpp button to install the latest prebuilt (#6097) 2026-06-10 10:04:26 -07:00
router.tsx Studio: mascot images degrade gracefully instead of showing alt text (#6146) 2026-06-10 08:22:17 -07:00