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