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