reload on team change

This commit is contained in:
Alex Holliday committed 2025-12-15 19:39:23 +00:00
1 parent 4e3630465c
commit e4183baf75
6 files changed
+37 -7

No files matched your search

+6 -1
View File
@@ -13,6 +13,7 @@ import { useGet } from "@/hooks/UseApi";
import type { ApiResponse } from "@/hooks/UseApi";
import type { IMonitor } from "@/types/monitor";
import type { ICheck } from "@/types/check";
import { config } from "@/config/index";
const ChecksPage = () => {
const theme = useTheme();
@@ -42,7 +43,11 @@ const ChecksPage = () => {
selectedMonitorId !== "all" ? `&monitorId=${selectedMonitorId}` : ""
}`,
{},
{ keepPreviousData: true },
{
keepPreviousData: true,
refreshInterval: config.GLOBAL_REFRESH,
dedupingInterval: 0,
},
{ useTeamIdAsKey: true }
);