Skip to content

Commit 8488afa

Browse files
chore(site): enable react-query cache (#11113)
1 parent d8e9500 commit 8488afa

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

site/src/App.tsx

-6
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@ import {
1414
} from "@mui/material/styles";
1515
import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
1616

17-
const shouldEnableCache =
18-
window.location.hostname.includes("dev.coder.com") ||
19-
process.env.NODE_ENV === "development";
20-
2117
const defaultQueryClient = new QueryClient({
2218
defaultOptions: {
2319
queries: {
2420
retry: false,
2521
refetchOnWindowFocus: false,
26-
cacheTime: shouldEnableCache ? undefined : 0,
27-
networkMode: shouldEnableCache ? undefined : "offlineFirst",
2822
},
2923
},
3024
});

0 commit comments

Comments
 (0)