MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / makeQueryClient

Function makeQueryClient

apps/ui/src/app/providers/QueryProvider.tsx:9–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { env } from "@/lib/env";
8
9import { isDevtoolsRequested } from "./QueryProvider.devtools";
10
11function makeQueryClient(): QueryClient {
12 return new QueryClient({
13 defaultOptions: {
14 queries: {
15 staleTime: 30_000,
16 gcTime: 5 * 60_000,
17 retry: 1,
18 refetchOnWindowFocus: false
19 },
20 mutations: {
21 retry: 0
22 }
23 }
24 });
25}
26

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected