(postId: string)
| 601 | ); |
| 602 | |
| 603 | export const getAllCommentsQuery = (postId: string): QueryKeyReturnType[] => { |
| 604 | const sorting = Object.values(SortCommentsBy).map((sortBy) => |
| 605 | generateCommentsQueryKey({ postId, sortBy }), |
| 606 | ); |
| 607 | |
| 608 | return sorting; |
| 609 | }; |
| 610 | |
| 611 | export const findIndexOfPostInData = ( |
| 612 | data: InfiniteData<AnyFeedData>, |
no test coverage detected