mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
Collection.vue and Platform.vue each carried an identical manual `unmounted` flag to keep a late random pick from navigating a component that had already gone away. Replace both with a shared composable built on `onScopeDispose`, so the guard also works outside a component. VueUse's `useMounted` is not a substitute: it only flips to `true` on mount and never back to `false` on teardown. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>