(postId: string)
| 636 | ); |
| 637 | |
| 638 | export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => { |
| 639 | const sorting = Object.values(SortCommentsBy).map((sortBy) => |
| 640 | generateCommentsQueryKey({ postId, sortBy }), |
| 641 | ); |
| 642 | |
| 643 | return sorting; |
| 644 | }; |
| 645 | |
| 646 | export const findIndexOfPostInData = ( |
| 647 | data: InfiniteData<AnyFeedData>, |
no test coverage detected