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

Function getAllCommentsQuery

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

Source from the content-addressed store, hash-verified

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

Callers 2

removePostCommentsFunction · 0.90
onSuccessFunction · 0.90

Calls 1

generateCommentsQueryKeyFunction · 0.85

Tested by

no test coverage detected