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

Function interestQueryOptions

packages/shared/src/features/interests/queries.ts:21–29  ·  view source on GitHub ↗
(
  id: string,
  user?: Pick<LoggedUser, 'id'>,
)

Source from the content-addressed store, hash-verified

19 });
20
21export const interestQueryOptions = (
22 id: string,
23 user?: Pick<LoggedUser, 'id'>,
24) =>
25 queryOptions({
26 queryKey: generateQueryKey(RequestKey.Interests, user, id),
27 queryFn: () => getInterest(id),
28 enabled: !!user?.id && !!id,
29 });
30
31export const interestFindingsQueryOptions = (
32 id: string,

Callers 3

useCreateInterestFunction · 0.90
LiveAgentPageFunction · 0.90
AgentSettingsPageFunction · 0.90

Calls 2

generateQueryKeyFunction · 0.90
getInterestFunction · 0.90

Tested by

no test coverage detected