(pageInfo: PageInfo)
| 98 | type AnyFeedConnection = Connection<AnyFeedNode>; |
| 99 | |
| 100 | export const getNextPageParam = (pageInfo: PageInfo): null | string => { |
| 101 | if (!pageInfo?.hasNextPage || !pageInfo?.endCursor) { |
| 102 | return null; |
| 103 | } |
| 104 | return pageInfo?.hasNextPage && pageInfo?.endCursor; |
| 105 | }; |
| 106 | |
| 107 | export const generateQueryKey = ( |
| 108 | name: RequestKey | AllFeedPages, |
no outgoing calls
no test coverage detected