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

Function userProfileQueryOptions

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

Source from the content-addressed store, hash-verified

413};
414
415export const userProfileQueryOptions = ({ id }: { id: string }) => {
416 return {
417 queryKey: generateQueryKey(
418 RequestKey.Profile,
419 { id },
420 {
421 id,
422 },
423 ),
424 queryFn: () => getProfile(id),
425 staleTime: StaleTime.OneHour,
426 enabled: !!id,
427 };
428};

Callers 1

RecruiterSetupChecklistFunction · 0.90

Calls 2

generateQueryKeyFunction · 0.90
getProfileFunction · 0.85

Tested by

no test coverage detected