From 5d03a522b911dba4d3ec1f290ee20cdaba796e03 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Fri, 13 Feb 2026 22:57:49 +0000 Subject: [PATCH] fix(frontend): avoid effect deps on loadSkillsByGateway --- frontend/src/app/skills/marketplace/page.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/skills/marketplace/page.tsx b/frontend/src/app/skills/marketplace/page.tsx index d1fbe7ce..2d0daee0 100644 --- a/frontend/src/app/skills/marketplace/page.tsx +++ b/frontend/src/app/skills/marketplace/page.tsx @@ -196,7 +196,18 @@ export default function SkillsMarketplacePage() { } try { - const gatewaySkills = await loadSkillsByGateway(); + const gatewaySkills = await Promise.all( + gateways.map(async (gateway) => { + const response = await listMarketplaceSkillsApiV1SkillsMarketplaceGet({ + gateway_id: gateway.id, + }); + return { + gatewayId: gateway.id, + gatewayName: gateway.name, + skills: response.status === 200 ? response.data : [], + }; + }), + ); if (cancelled) return; @@ -225,7 +236,7 @@ export default function SkillsMarketplacePage() { return () => { cancelled = true; }; - }, [gateways, isAdmin, isSignedIn, loadSkillsByGateway, skills]); + }, [gateways, isAdmin, isSignedIn, skills]); const installMutation = useInstallMarketplaceSkillApiV1SkillsMarketplaceSkillIdInstallPost(