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

Function myCurrentPicksQueryOptions

packages/shared/src/graphql/picks.ts:256–265  ·  view source on GitHub ↗
(user?: Pick<LoggedUser, 'id'>)

Source from the content-addressed store, hash-verified

254});
255
256export const myCurrentPicksQueryOptions = (user?: Pick<LoggedUser, 'id'>) => ({
257 queryKey: generateQueryKey(RequestKey.Picks, user, 'current'),
258 queryFn: async (): Promise<Picks | null> => {
259 const data = await gqlClient.request<{ myCurrentPicks: Picks | null }>(
260 MY_CURRENT_PICKS_QUERY,
261 );
262 return data.myCurrentPicks ?? null;
263 },
264 enabled: !!user?.id,
265});
266
267export const picksWeekSignalsQueryOptions = (
268 user?: Pick<LoggedUser, 'id'>,

Callers 4

BookmarkFeedLayoutFunction · 0.90
useWeeklyPicksHeroFunction · 0.90
usePicksEditorFunction · 0.90
NewPicksContentFunction · 0.90

Calls 1

generateQueryKeyFunction · 0.90

Tested by

no test coverage detected