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

Function lfgWaitingCountQueryOptions

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

Source from the content-addressed store, hash-verified

99 });
100
101export const lfgWaitingCountQueryOptions = (
102 user: QueryUser,
103 { enabled = true }: { enabled?: boolean } = {},
104) =>
105 queryOptions<number>({
106 queryKey: lfgWaitingCountQueryKey(user),
107 queryFn: getLfgReachOutWaitingCount,
108 staleTime: StaleTime.Default,
109 enabled: !!user?.id && enabled,
110 });
111
112// The open post can be among the newest, so one more than the board lists.
113const LFG_PAST_POSTS_FETCHED = 6;

Callers 1

useUnreadMessagesCountFunction · 0.90

Calls 1

lfgWaitingCountQueryKeyFunction · 0.85

Tested by

no test coverage detected