We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8e9500 commit 8488afaCopy full SHA for 8488afa
site/src/App.tsx
@@ -14,17 +14,11 @@ import {
14
} from "@mui/material/styles";
15
import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
16
17
-const shouldEnableCache =
18
- window.location.hostname.includes("dev.coder.com") ||
19
- process.env.NODE_ENV === "development";
20
-
21
const defaultQueryClient = new QueryClient({
22
defaultOptions: {
23
queries: {
24
retry: false,
25
refetchOnWindowFocus: false,
26
- cacheTime: shouldEnableCache ? undefined : 0,
27
- networkMode: shouldEnableCache ? undefined : "offlineFirst",
28
},
29
30
});
0 commit comments