add update trigger prop
This commit is contained in:
1 parent
1a198c28ee
commit
90a5fe946a
1 file changed
+2
-1
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user