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

Function getAllCommentsQuery

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

Source from the content-addressed store, hash-verified

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