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

Function getAllCommentsQuery

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

Source from the content-addressed store, hash-verified

636 );
637
638export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => {
639 const sorting = Object.values(SortCommentsBy).map((sortBy) =>
640 generateCommentsQueryKey({ postId, sortBy }),
641 );
642
643 return sorting;
644};
645
646export const findIndexOfPostInData = (
647 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