Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

feat: return is data is fetching (#6765)

Yunus M5c546e8efd23
diff --git a/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx b/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx
index 1ee424b5af..cf8f67de57 100644
--- a/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx
+++ b/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx
@@ -79,6 +79,10 @@ export default function CustomDomainSettings(): JSX.Element {
});
useEffect(() => {
+ if (isFetchingDeploymentsData) {
+ return;
+ }
+
if (deploymentsData?.data?.status === 'success') {
setHosts(deploymentsData.data.data.hosts);
@@ -102,7 +106,12 @@ export default function CustomDomainSettings(): JSX.Element {
if (deploymentsData?.data?.data.state === 'HEALTHY') {
setIsPollingEnabled(false);
}
- }, [deploymentsData, refetchDeploymentsData, isPollingEnabled]);
+ }, [
+ deploymentsData,
+ refetchDeploymentsData,
+ isPollingEnabled,
+ isFetchingDeploymentsData,
+ ]);
const onUpdateCustomDomainSettings = (): void => {
editForm