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

Function myLfgPostsQueryOptions

packages/shared/src/features/lfg/queries.ts:115–121  ·  view source on GitHub ↗
(user: QueryUser)

Source from the content-addressed store, hash-verified

113const LFG_PAST_POSTS_FETCHED = 6;
114
115export const myLfgPostsQueryOptions = (user: QueryUser) =>
116 queryOptions({
117 queryKey: lfgKey(user, 'my_posts'),
118 queryFn: () => getMyLfgPosts(LFG_PAST_POSTS_FETCHED),
119 staleTime: StaleTime.Default,
120 enabled: !!user?.id,
121 });
122
123export const userLfgPostQueryKey = (user: QueryUser, userId: string) =>
124 lfgKey(user, 'user_post', userId);

Callers 1

LfgPastPostsWidgetFunction · 0.90

Calls 2

getMyLfgPostsFunction · 0.90
lfgKeyFunction · 0.85

Tested by

no test coverage detected