Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore(site): enable react-query cache
  • Loading branch information
BrunoQuaresma committed Nov 29, 2023
commit f1d9581c53453fdc75a778e5296e52460b059496
4 changes: 3 additions & 1 deletion site/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import {
} from "@mui/material/styles";
import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";

const shouldEnableCache = window.location.hostname.includes("dev.coder.com");
const shouldEnableCache =
window.location.hostname.includes("dev.coder.com") ||
process.env.NODE_ENV === "development";

const defaultQueryClient = new QueryClient({
defaultOptions: {
Expand Down