({
first = MAJOR_HEADLINES_MAX_FIRST,
after,
}: {
first?: number;
after?: string;
})
| 100 | export const MAJOR_HEADLINES_MAX_FIRST = 50; |
| 101 | |
| 102 | export const majorHeadlinesQueryOptions = ({ |
| 103 | first = MAJOR_HEADLINES_MAX_FIRST, |
| 104 | after, |
| 105 | }: { |
| 106 | first?: number; |
| 107 | after?: string; |
| 108 | }) => ({ |
| 109 | queryKey: ['major-headlines', first, after ?? ''], |
| 110 | queryFn: () => |
| 111 | gqlClient.request<MajorHeadlinesData>(MAJOR_HEADLINES_QUERY, { |
| 112 | first, |
| 113 | after, |
| 114 | }), |
| 115 | staleTime: ONE_MINUTE, |
| 116 | }); |
| 117 | |
| 118 | export const POST_HIGHLIGHT_FEED_FRAGMENT = gql` |
| 119 | fragment PostHighlightFeedCard on PostHighlight { |
nothing calls this directly
no outgoing calls
no test coverage detected