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
@@ -14,6 +14,7 @@ import type { ApiResponse } from "@/hooks/UseApi";
import type { SelectChangeEvent } from "@mui/material/Select";
import type { IIncident } from "@/types/incident";
import type { IMonitor } from "@/types/monitor";
import { config } from "@/config/index";
const IncidentsPage = () => {
const theme = useTheme();
@@ -37,7 +38,11 @@ const IncidentsPage = () => {
: ""
}${resolved !== null ? `&resolved=${resolved}` : ""}`,
{},
{ keepPreviousData: true },
{
keepPreviousData: true,
refreshInterval: config.GLOBAL_REFRESH,
dedupingInterval: 0,
},
{ useTeamIdAsKey: true }
);