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

Function lfgConversationQueryOptions

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

Source from the content-addressed store, hash-verified

210 });
211
212export const lfgConversationQueryOptions = (
213 user: QueryUser,
214 peerId: string,
215 { enabled = true }: { enabled?: boolean } = {},
216) =>
217 queryOptions({
218 queryKey: lfgKey(user, 'conversation', peerId),
219 queryFn: () => getLfgConversation(peerId),
220 staleTime: StaleTime.Default,
221 enabled: !!user?.id && !!peerId && enabled,
222 });
223
224// Every list that holds the viewer's own posts.
225export const invalidateLfgPostLists = (

Callers 3

LfgConversationContextFunction · 0.90
useLfgRepoLinkWarningFunction · 0.90
useLfgThreadPitchesFunction · 0.90

Calls 2

getLfgConversationFunction · 0.90
lfgKeyFunction · 0.85

Tested by

no test coverage detected