Spaces:
Configuration error
Configuration error
File size: 288 Bytes
2d63f96 | 1 2 3 4 5 6 7 8 9 10 11 | 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
});
|