(postId: string)
| 625 | ); |
| 626 | |
| 627 | export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => { |
| 628 | const sorting = Object.values(SortCommentsBy).map((sortBy) => |
| 629 | generateCommentsQueryKey({ postId, sortBy }), |
| 630 | ); |
| 631 | |
| 632 | return sorting; |
| 633 | }; |
| 634 | |
| 635 | export const findIndexOfPostInData = ( |
| 636 | data: InfiniteData<AnyFeedData>, |
no test coverage detected