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,
|
dateRange,
|
||||||
numToDisplay,
|
numToDisplay,
|
||||||
normalize,
|
normalize,
|
||||||
|
updateTrigger,
|
||||||
}) => {
|
}) => {
|
||||||
const [monitor, setMonitor] = useState(undefined);
|
const [monitor, setMonitor] = useState(undefined);
|
||||||
const [audits, setAudits] = useState(undefined);
|
const [audits, setAudits] = useState(undefined);
|
||||||
@@ -197,7 +198,7 @@ const useFetchStatsByMonitorId = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
fetchMonitor();
|
fetchMonitor();
|
||||||
}, [monitorId, dateRange, numToDisplay, normalize, sortOrder, limit]);
|
}, [monitorId, dateRange, numToDisplay, normalize, sortOrder, limit, updateTrigger]);
|
||||||
return [monitor, audits, isLoading, networkError];
|
return [monitor, audits, isLoading, networkError];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user