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

Function getAllCommentsQuery

packages/shared/src/lib/query.ts:625–631  ·  view source on GitHub ↗
(postId: string)

Source from the content-addressed store, hash-verified

623 );
624
625export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => {
626 const sorting = Object.values(SortCommentsBy).map((sortBy) =>
627 generateCommentsQueryKey({ postId, sortBy }),
628 );
629
630 return sorting;
631};
632
633export const findIndexOfPostInData = (
634 data: InfiniteData<AnyFeedData>,

Callers 3

getCommentFromCacheFunction · 0.90
removePostCommentsFunction · 0.90
onSuccessFunction · 0.90

Calls 1

generateCommentsQueryKeyFunction · 0.85

Tested by

no test coverage detected