Spaces:
Configuration error
Configuration error
Download frontend/src/hooks/query/use-config.ts from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/hooks/query/use-config.ts
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/hooks/query/use-config.ts
-
curl -L -o use-config.ts https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/hooks/query/use-config.ts
288 Bytes
| import { useQuery } from "@tanstack/react-query"; | |
| import OpenHands from "#/api/open-hands"; | |
| export const useConfig = () => | |
| useQuery({ | |
| queryKey: ["config"], | |
| queryFn: OpenHands.getConfig, | |
| staleTime: 1000 * 60 * 5, // 5 minutes | |
| gcTime: 1000 * 60 * 15, // 15 minutes | |
| }); | |