Try to fix stale queries when tasks and workflows are created (#1169)

This commit is contained in:
Shuchang Zheng
2024-11-11 07:47:31 -08:00
committed by GitHub
parent 30b83646c2
commit e0fa51e7be
6 changed files with 40 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ function QueuedTasks() {
})
.then((response) => response.data);
},
refetchOnMount: true,
refetchOnMount: "always",
});
function handleNavigate(event: React.MouseEvent, id: string) {

View File

@@ -31,7 +31,7 @@ function RunningTasks() {
})
.then((response) => response.data);
},
refetchOnMount: true,
refetchOnMount: "always",
});
if (runningTasks?.length === 0) {