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

Function useUserFeedback

packages/shared/src/graphql/feedback.ts:338–350  ·  view source on GitHub ↗
(first = 20)

Source from the content-addressed store, hash-verified

336});
337
338export const useUserFeedback = (first = 20) => {
339 return useInfiniteQuery({
340 queryKey: generateQueryKey(RequestKey.UserFeedback),
341 queryFn: ({ pageParam }) =>
342 gqlClient.request<UserFeedbackData>(USER_FEEDBACK_QUERY, {
343 first,
344 after: pageParam,
345 }),
346 initialPageParam: null as string | null,
347 getNextPageParam: (lastPage) =>
348 getNextPageParam(lastPage?.userFeedback?.pageInfo),
349 });
350};
351
352export const useUserFeedbackByUserId = ({
353 userId,

Callers 1

AccountFeedbackPageFunction · 0.90

Calls 2

generateQueryKeyFunction · 0.90
getNextPageParamFunction · 0.90

Tested by

no test coverage detected