Download apps/web/src/lib/query-client.ts from ineeds/now: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/ineeds/now/resolve/main/apps/web/src/lib/query-client.ts
- Command line
-
hf download hf://spaces/ineeds/now/apps/web/src/lib/query-client.ts
-
curl -L -o query-client.ts https://huggingface.co/spaces/ineeds/now/resolve/main/apps/web/src/lib/query-client.ts
390 Bytes
| import { QueryClient } from "@tanstack/react-query"; | |
| export function createQueryClient(): QueryClient { | |
| return new QueryClient({ | |
| defaultOptions: { | |
| queries: { | |
| retry: 1, | |
| staleTime: 30_000, | |
| gcTime: 10 * 60 * 1000, | |
| refetchOnWindowFocus: false, | |
| refetchOnReconnect: false, | |
| }, | |
| mutations: { | |
| retry: 0, | |
| }, | |
| }, | |
| }); | |
| } | |