mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 18:36:06 +08:00
feat: return is data is fetching (#6765)
This commit is contained in:
parent
ecd50f7232
commit
5c546e8efd
@ -79,6 +79,10 @@ export default function CustomDomainSettings(): JSX.Element {
|
|||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (isFetchingDeploymentsData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (deploymentsData?.data?.status === 'success') {
|
if (deploymentsData?.data?.status === 'success') {
|
||||||
setHosts(deploymentsData.data.data.hosts);
|
setHosts(deploymentsData.data.data.hosts);
|
||||||
|
|
||||||
@ -102,7 +106,12 @@ export default function CustomDomainSettings(): JSX.Element {
|
|||||||
if (deploymentsData?.data?.data.state === 'HEALTHY') {
|
if (deploymentsData?.data?.data.state === 'HEALTHY') {
|
||||||
setIsPollingEnabled(false);
|
setIsPollingEnabled(false);
|
||||||
}
|
}
|
||||||
}, [deploymentsData, refetchDeploymentsData, isPollingEnabled]);
|
}, [
|
||||||
|
deploymentsData,
|
||||||
|
refetchDeploymentsData,
|
||||||
|
isPollingEnabled,
|
||||||
|
isFetchingDeploymentsData,
|
||||||
|
]);
|
||||||
|
|
||||||
const onUpdateCustomDomainSettings = (): void => {
|
const onUpdateCustomDomainSettings = (): void => {
|
||||||
editForm
|
editForm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user