From 8488afa8df4ec024bce4ccefd29c82f82733f5d0 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Fri, 8 Dec 2023 20:58:29 -0300 Subject: [PATCH] chore(site): enable react-query cache (#11113) --- site/src/App.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/site/src/App.tsx b/site/src/App.tsx index 1f14476769..50ab3d27d4 100644 --- a/site/src/App.tsx +++ b/site/src/App.tsx @@ -14,17 +14,11 @@ import { } from "@mui/material/styles"; import { ThemeProvider as EmotionThemeProvider } from "@emotion/react"; -const shouldEnableCache = - window.location.hostname.includes("dev.coder.com") || - process.env.NODE_ENV === "development"; - const defaultQueryClient = new QueryClient({ defaultOptions: { queries: { retry: false, refetchOnWindowFocus: false, - cacheTime: shouldEnableCache ? undefined : 0, - networkMode: shouldEnableCache ? undefined : "offlineFirst", }, }, });