fix(connections): ensure connections reflect actual status. (#930)

This commit is contained in:
Dan Ditomaso
2025-11-04 16:09:30 -05:00
committed by GitHub
parent e13d543e73
commit ab0308701c
2 changed files with 24 additions and 1 deletions
+3 -1
View File
@@ -57,6 +57,7 @@ export const Connections = () => {
removeConnection,
setDefaultConnection,
refreshStatuses,
syncConnectionStatuses,
} = useConnections();
const { toast } = useToast();
const navigate = useNavigate({ from: "/" });
@@ -64,9 +65,10 @@ export const Connections = () => {
const isURLHTTPS = useMemo(() => location.protocol === "https:", []);
const { t } = useTranslation("connections");
// On first mount, try to refresh statuses
// On first mount, sync statuses and refresh
// biome-ignore lint/correctness/useExhaustiveDependencies: This can cause the icon to refresh too often
useEffect(() => {
syncConnectionStatuses();
refreshStatuses();
}, []);