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