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