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

Function getAllCommentsQuery

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

Source from the content-addressed store, hash-verified

601 );
602
603export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => {
604 const sorting = Object.values(SortCommentsBy).map((sortBy) =>
605 generateCommentsQueryKey({ postId, sortBy }),
606 );
607
608 return sorting;
609};
610
611export const findIndexOfPostInData = (
612 data: InfiniteData<AnyFeedData>,

Callers 2

removePostCommentsFunction · 0.90
onSuccessFunction · 0.90

Calls 1

generateCommentsQueryKeyFunction · 0.85

Tested by

no test coverage detected