fix(frontend): refresh subscription settings after save (#6287)

The derived defaults query is cached indefinitely, so subscription links kept using the old path after settings saves. Invalidate it only after successful saves so inbounds and clients refetch generated subscription URLs.
This commit is contained in:
dawn
2026-08-23 02:11:51 +08:00
committed by GitHub
parent 1250fbb734
commit b73ceae081
2 changed files with 62 additions and 0 deletions
@@ -77,6 +77,7 @@ export function useAllSettings() {
if (!msg?.success) return;
if (saved) markSaved(saved);
queryClient.invalidateQueries({ queryKey: keys.settings.all() });
queryClient.invalidateQueries({ queryKey: keys.settings.defaults() });
},
});