MCPcopy Create free account
hub / github.com/dailydotdev/apps / patchyConfigQueryOptions

Function patchyConfigQueryOptions

packages/shared/src/graphql/patchy.ts:54–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52`;
53
54export 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});

Callers 1

usePatchyConfigSyncFunction · 0.90

Calls 1

generateQueryKeyFunction · 0.90

Tested by

no test coverage detected