Skip to content

Commit

Permalink
disable 15 sec auto refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
acashmoney authored and supraja-968 committed Jul 26, 2024
1 parent 2653ef6 commit 745cb6c
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ export default function ExperimentDetail() {

const experimentID = experiment.ID?.toString();

useEffect(() => {
if (["running", "queued"].includes(status.status) && experimentID) {
const interval = setInterval(() => {
console.log("Checking for new results");
dispatch(experimentDetailThunk(experimentID));
}, 15000);

return () => clearInterval(interval);
}
}, [dispatch, experimentID, status]);
// useEffect(() => {
// if (["running", "queued"].includes(status.status) && experimentID) {
// const interval = setInterval(() => {
// console.log("Checking for new results");
// dispatch(experimentDetailThunk(experimentID));
// }, 15000);

// return () => clearInterval(interval);
// }
// }, [dispatch, experimentID, status]);

return (
<div>
Expand Down

0 comments on commit 745cb6c

Please sign in to comment.