Inconsistent behavior of window.alert() during Nuxt navigation guards
In Nuxt 3, triggering native window.alert() calls within navigation guards or lifecycle hooks can lead to unpredictable results across different environments. Because Nuxt performs both server-side rendering (SSR) and client-side hydration, the timing and execution of these calls vary relative to the application state. When an alert is placed inside a global