()
| 52 | `; |
| 53 | |
| 54 | export const patchyConfigQueryOptions = () => ({ |
| 55 | queryKey: generateQueryKey(RequestKey.PatchyConfig), |
| 56 | queryFn: async (): Promise<PatchyConfigResponse> => { |
| 57 | const { patchyConfig } = await gqlClient.request<{ |
| 58 | patchyConfig: PatchyConfigResponse; |
| 59 | }>(PATCHY_CONFIG_QUERY); |
| 60 | |
| 61 | return patchyConfig; |
| 62 | }, |
| 63 | staleTime: StaleTime.OneDay, |
| 64 | // A miss only means this load keeps the cached or built-in config. |
| 65 | retry: false, |
| 66 | refetchOnWindowFocus: false, |
| 67 | }); |
no test coverage detected