-
fix: keep page state when switching tabs within the same route (#5796) · 759ab6bb
AnimatedOutlet keyed its motion container by the full pathname, so navigating between params of the same route (e.g. the dashboard tabs under /dashboard/$section) changed the key and remounted the route component, discarding its in-memory state. The most visible symptom: the dashboard time range resets to the default every time you switch sub-tabs (Model Analytics / Flow / User Analytics). Key the transition by the matched route id instead, so param-only navigation re-renders in place while real page-to-page navigation still plays the enter animation. This also preserves state across the other $section tab pages (usage logs, models, system settings).
feitianbubu committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| classic | Loading commit data... | |
| default | Loading commit data... | |
| bun.lock | Loading commit data... | |
| package.json | Loading commit data... |