(pageInfo: PageInfo)
| 86 | type AnyFeedConnection = Connection<AnyFeedNode>; |
| 87 | |
| 88 | export const getNextPageParam = (pageInfo: PageInfo): null | string => { |
| 89 | if (!pageInfo?.hasNextPage || !pageInfo?.endCursor) { |
| 90 | return null; |
| 91 | } |
| 92 | return pageInfo?.hasNextPage && pageInfo?.endCursor; |
| 93 | }; |
| 94 | |
| 95 | export const generateQueryKey = ( |
| 96 | name: RequestKey | AllFeedPages, |
no outgoing calls
no test coverage detected