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

Function feedbackQueryOptions

packages/shared/src/graphql/feedback.ts:328–336  ·  view source on GitHub ↗
({ id }: { id: string })

Source from the content-addressed store, hash-verified

326};
327
328export const feedbackQueryOptions = ({ id }: { id: string }) => ({
329 queryKey: generateQueryKey(RequestKey.Feedback, undefined, id),
330 queryFn: async (): Promise<FeedbackItem> => {
331 const res = await gqlClient.request<FeedbackData>(FEEDBACK_QUERY, { id });
332 return res.feedback;
333 },
334 staleTime: StaleTime.Default,
335 enabled: !!id,
336});
337
338export const useUserFeedback = (first = 20) => {
339 return useInfiniteQuery({

Callers 4

refreshThreadFunction · 0.90
FeedbackThreadFunction · 0.90
TeamFeedbackThreadPageFunction · 0.90

Calls 1

generateQueryKeyFunction · 0.90

Tested by

no test coverage detected