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

Function getAllCommentsQuery

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

Source from the content-addressed store, hash-verified

640 );
641
642export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => {
643 const sorting = Object.values(SortCommentsBy).map((sortBy) =>
644 generateCommentsQueryKey({ postId, sortBy }),
645 );
646
647 return sorting;
648};
649
650export const findIndexOfPostInData = (
651 data: InfiniteData<AnyFeedData>,

Callers 2

removePostCommentsFunction · 0.90
onSuccessFunction · 0.90

Calls 1

generateCommentsQueryKeyFunction · 0.85

Tested by

no test coverage detected