add update trigger prop

This commit is contained in:
Alex Holliday
2025-06-16 11:13:45 +08:00
parent 1a198c28ee
commit 90a5fe946a
+2 -1
View File
@@ -170,6 +170,7 @@ const useFetchStatsByMonitorId = ({
dateRange,
numToDisplay,
normalize,
updateTrigger,
}) => {
const [monitor, setMonitor] = useState(undefined);
const [audits, setAudits] = useState(undefined);
@@ -197,7 +198,7 @@ const useFetchStatsByMonitorId = ({
}
};
fetchMonitor();
}, [monitorId, dateRange, numToDisplay, normalize, sortOrder, limit]);
}, [monitorId, dateRange, numToDisplay, normalize, sortOrder, limit, updateTrigger]);
return [monitor, audits, isLoading, networkError];
};