Skip to content

Commit

Permalink
feat: return is data is fetching (#6765)
Browse files Browse the repository at this point in the history
  • Loading branch information
YounixM authored Jan 7, 2025
1 parent ecd50f7 commit 5c546e8
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export default function CustomDomainSettings(): JSX.Element {
});

useEffect(() => {
if (isFetchingDeploymentsData) {
return;
}

if (deploymentsData?.data?.status === 'success') {
setHosts(deploymentsData.data.data.hosts);

Expand All @@ -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
Expand Down

0 comments on commit 5c546e8

Please sign in to comment.