diff --git a/src/App.vue b/src/App.vue index f36f74720..6b7c56be0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,11 @@ diff --git a/src/extensions/core/cloudRemoteConfig.ts b/src/extensions/core/cloudRemoteConfig.ts index d3c1dc7ac..8db19df9c 100644 --- a/src/extensions/core/cloudRemoteConfig.ts +++ b/src/extensions/core/cloudRemoteConfig.ts @@ -16,15 +16,16 @@ useExtensionService().registerExtension({ const { isLoggedIn } = useCurrentUser() const { isActiveSubscription } = useSubscription() - // Refresh config when subscription status changes - // Initial auth-aware refresh happens in WorkspaceAuthGate before app renders + // Refresh config when auth or subscription status changes + // Primary auth refresh is handled by WorkspaceAuthGate on mount + // This watcher handles subscription changes and acts as a backup for auth watchDebounced( [isLoggedIn, isActiveSubscription], () => { if (!isLoggedIn.value) return void refreshRemoteConfig() }, - { debounce: 256 } + { debounce: 256, immediate: true } ) // Poll for config updates every 10 minutes (with auth) diff --git a/src/views/layouts/LayoutDefault.vue b/src/views/layouts/LayoutDefault.vue index cbe0e3408..613aa0418 100644 --- a/src/views/layouts/LayoutDefault.vue +++ b/src/views/layouts/LayoutDefault.vue @@ -1,11 +1,15 @@