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

Function userProfileQueryOptions

packages/shared/src/lib/user.ts:347–360  ·  view source on GitHub ↗
({ id }: { id: string })

Source from the content-addressed store, hash-verified

345};
346
347export const userProfileQueryOptions = ({ id }: { id: string }) => {
348 return {
349 queryKey: generateQueryKey(
350 RequestKey.Profile,
351 { id },
352 {
353 id,
354 },
355 ),
356 queryFn: () => getProfile(id),
357 staleTime: StaleTime.OneHour,
358 enabled: !!id,
359 };
360};

Callers 1

RecruiterSetupChecklistFunction · 0.90

Calls 2

generateQueryKeyFunction · 0.90
getProfileFunction · 0.85

Tested by

no test coverage detected