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