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

Function lfgInboxQueryOptions

packages/shared/src/features/lfg/queries.ts:181–191  ·  view source on GitHub ↗
(
  user: QueryUser,
  filtered: boolean,
  { enabled = true }: { enabled?: boolean } = {},
)

Source from the content-addressed store, hash-verified

179 });
180
181export const lfgInboxQueryOptions = (
182 user: QueryUser,
183 filtered: boolean,
184 { enabled = true }: { enabled?: boolean } = {},
185) =>
186 queryOptions({
187 queryKey: lfgInboxQueryKey(user, filtered),
188 queryFn: () => getLfgReachOutInbox(filtered),
189 staleTime: StaleTime.OneMinute,
190 enabled: !!user?.id && enabled,
191 });
192
193export const lfgReachOutQueryOptions = (user: QueryUser, id: string) =>
194 queryOptions({

Callers 3

useLfgRequestCountFunction · 0.90
useLfgRequestsStateFunction · 0.90
LfgRequestSectionFunction · 0.90

Calls 2

getLfgReachOutInboxFunction · 0.90
lfgInboxQueryKeyFunction · 0.85

Tested by

no test coverage detected