Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: add 15s refetch interval to gateway pools list
bernie-g6eb9042d6e67
diff --git a/frontend/src/hooks/api/gateway-pools/queries.tsx b/frontend/src/hooks/api/gateway-pools/queries.tsxindex cd38311769..52e649f6a8 100644--- a/frontend/src/hooks/api/gateway-pools/queries.tsx+++ b/frontend/src/hooks/api/gateway-pools/queries.tsx@@ -27,8 +27,11 @@ export const gatewayPoolsQueryKeys = {})};-export const useListGatewayPools = () => {- return useQuery(gatewayPoolsQueryKeys.list());+export const useListGatewayPools = (options?: { refetchInterval?: number }) => {+ return useQuery({+ ...gatewayPoolsQueryKeys.list(),+ refetchInterval: options?.refetchInterval+ });};export const useGetGatewayPool = (poolId: string) => {diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayPoolsContent.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayPoolsContent.tsxindex 6529c8a48d..f3c91a0eec 100644--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayPoolsContent.tsx+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayPoolsContent.tsx@@ -39,7 +39,9 @@ export const GatewayPoolsContent = () => {const [search, setSearch] = useState("");const [selectedPoolId, setSelectedPoolId] = useState<string | null>(null);const [resourcesPool, setResourcesPool] = useState<{ id: string; name: string } | null>(null);- const { data: pools, isPending: isPoolsLoading } = useListGatewayPools();+ const { data: pools, isPending: isPoolsLoading } = useListGatewayPools({+ refetchInterval: 15_000+ });const deletePool = useDeleteGatewayPool();const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp([