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

Function getAllCommentsQuery

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

Source from the content-addressed store, hash-verified

630 );
631
632export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => {
633 const sorting = Object.values(SortCommentsBy).map((sortBy) =>
634 generateCommentsQueryKey({ postId, sortBy }),
635 );
636
637 return sorting;
638};
639
640export const findIndexOfPostInData = (
641 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